summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/player.cc13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/player.cc b/src/player.cc
index 5573b79..fe02b01 100644
--- a/src/player.cc
+++ b/src/player.cc
@@ -114,7 +114,13 @@ void Player::player()
dv_decoder_t *decoder = dv_decoder_new(0/*this value is unused*/, FALSE, FALSE);
decoder->quality = DV_QUALITY_BEST;
- //decoder->system = e_dv_system_625_50;
+ // PAL/IEC 68134
+ decoder->system = e_dv_system_625_50;
+ decoder->std = e_dv_std_iec_61834;
+
+ // PAL/SMPTE 314M
+ // decoder->system = e_dv_system_625_50;
+ // decoder->std = e_dv_std_smpte_314m;
while(*running) {
// Wait for the semaphore to be free... then run
@@ -141,7 +147,6 @@ void Player::player()
if(!frame) break;
fprintf(stderr, "[%d]", dv_is_PAL(decoder)); fflush(stderr);
- SDL_LockYUVOverlay(overlay);
// libdv img decode
dv_decode_full_frame(decoder,
@@ -150,8 +155,8 @@ void Player::player()
pxs,
pitches);
- dv_report_video_error(decoder, frame->data);
- // overlay->pixels = pxs;
+ SDL_LockYUVOverlay(overlay);
+ overlay->pixels = pxs;
SDL_UnlockYUVOverlay(overlay);
SDL_DisplayYUVOverlay(overlay, &rect);
// delete frame;