dvb.media_addon: Stop changing format on every video frame.

- Due to comparing the wrong fields with one another the dvb.media_addon called
  ChangeFormat() on every new video frame.
- Also remove a duplicate print statement.
This commit is contained in:
Colin Günther 2014-08-07 19:52:04 +02:00
parent 97302390a0
commit 069bc5b597

View File

@ -1815,10 +1815,7 @@ DVBMediaNode::raw_video_thread()
fOutputRawVideo.format.u.raw_video.pixel_width_aspect,
mh.u.raw_video.pixel_width_aspect);
printf(" pixel_height_aspect %d => %d\n",
fOutputRawVideo.format.u.raw_video.pixel_width_aspect,
mh.u.raw_video.pixel_height_aspect);
printf(" pixel_height_aspect %d => %d\n",
fOutputRawVideo.format.u.raw_video.pixel_width_aspect,
fOutputRawVideo.format.u.raw_video.pixel_height_aspect,
mh.u.raw_video.pixel_height_aspect);
printf(" video_buffer_size %ld => %ld\n", video_buffer_size,
mh.size_used);
@ -1838,7 +1835,7 @@ DVBMediaNode::raw_video_thread()
= mh.u.raw_video.bytes_per_row;
fOutputRawVideo.format.u.raw_video.pixel_width_aspect
= mh.u.raw_video.pixel_width_aspect;
fOutputRawVideo.format.u.raw_video.pixel_width_aspect
fOutputRawVideo.format.u.raw_video.pixel_height_aspect
= mh.u.raw_video.pixel_height_aspect;
fOutputRawVideo.format.u.raw_video.last_active
= mh.u.raw_video.display_line_count - 1;