diff options
author | deva <deva> | 2006-04-15 11:08:03 +0000 |
---|---|---|
committer | deva <deva> | 2006-04-15 11:08:03 +0000 |
commit | 2cb888629f5c78507eaa544fc1dbd6404b7327b7 (patch) | |
tree | 7aea2ce0a17e427095b817e32edee303677c8cf5 /client/player.cc | |
parent | afdd0a07be6a669cdd8343fc033f170395b470c0 (diff) |
*** empty log message ***
Diffstat (limited to 'client/player.cc')
-rw-r--r-- | client/player.cc | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/client/player.cc b/client/player.cc index ba2250f..608d53d 100644 --- a/client/player.cc +++ b/client/player.cc @@ -29,9 +29,8 @@ #define WIDTH 720 #define HEIGHT 576 -static int num = 0; - -Player::Player(QWidget *w, Decoder *d) +Player::Player(QWidget *w, Decoder *d) : + dvdecoder(DV::ColorBest) { widget = w; decoder = d; @@ -51,13 +50,10 @@ Player::~Player() void Player::show_frame() { char *frame; - fprintf(stderr, "Frame!%d\n", num++); - frame = decoder->getFrame(); - if(frame) { - dvdecoder.decode(frame); - // free(frame); - } + frame = decoder->pframeAcquire(); // Acquire frame data + dvdecoder.decode(frame); + decoder->pframeRelease(); // Release frame data render.width = widget->width(); render.height = widget->height(); |