mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 11:32:38 +00:00
flvdemux: Fix GST_CLOCK_DIFF usage.
It was previously checking for DIFF(a, b > 6 * GST_SECOND) instead of the proper DIFF(a,b) > 6 * GST_SECOND
This commit is contained in:
parent
d263119589
commit
817911664e
1 changed files with 4 additions and 4 deletions
|
@ -803,8 +803,8 @@ gst_flv_parse_tag_audio (GstFLVDemux * demux, GstBuffer * buffer)
|
|||
}
|
||||
|
||||
if (G_UNLIKELY (!demux->no_more_pads
|
||||
&& GST_CLOCK_DIFF (demux->audio_start,
|
||||
GST_BUFFER_TIMESTAMP (outbuf) > 6 * GST_SECOND))) {
|
||||
&& (GST_CLOCK_DIFF (demux->audio_start,
|
||||
GST_BUFFER_TIMESTAMP (outbuf)) > 6 * GST_SECOND))) {
|
||||
GST_DEBUG_OBJECT (demux,
|
||||
"Signalling no-more-pads because no video stream was found"
|
||||
" after 6 seconds of audio");
|
||||
|
@ -1156,8 +1156,8 @@ gst_flv_parse_tag_video (GstFLVDemux * demux, GstBuffer * buffer)
|
|||
}
|
||||
|
||||
if (G_UNLIKELY (!demux->no_more_pads
|
||||
&& GST_CLOCK_DIFF (demux->video_start,
|
||||
GST_BUFFER_TIMESTAMP (outbuf) > 6 * GST_SECOND))) {
|
||||
&& (GST_CLOCK_DIFF (demux->video_start,
|
||||
GST_BUFFER_TIMESTAMP (outbuf)) > 6 * GST_SECOND))) {
|
||||
GST_DEBUG_OBJECT (demux,
|
||||
"Signalling no-more-pads because no audio stream was found"
|
||||
" after 6 seconds of video");
|
||||
|
|
Loading…
Reference in a new issue