summaryrefslogtreecommitdiff
path: root/client/player.cc
diff options
context:
space:
mode:
Diffstat (limited to 'client/player.cc')
-rw-r--r--client/player.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/client/player.cc b/client/player.cc
index 1689dcf..a8f6152 100644
--- a/client/player.cc
+++ b/client/player.cc
@@ -29,8 +29,6 @@
#define WIDTH 720
#define HEIGHT 576
-//#define COLORSPACE_YV12
-
static int num = 0;
Player::Player(QWidget *w, Decoder *d)
@@ -52,13 +50,14 @@ Player::~Player()
void Player::show_frame()
{
- Frame *frame;
+ char *frame;
fprintf(stderr, "Frame!%d\n", num++);
frame = decoder->getFrame();
if(!frame) return;
- dvdecoder.decode((char*)frame->data);
+ dvdecoder.decode(frame);
+ free(frame);
render.width = widget->width();
render.height = widget->height();