mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
hlsdemux: Implement correctly the GST_QUERY_DURATION
This commit is contained in:
parent
a916d4dfd2
commit
ae4af3910e
1 changed files with 3 additions and 1 deletions
|
@ -405,7 +405,7 @@ gst_hls_demux_src_query (GstPad * pad, GstQuery * query)
|
|||
|
||||
switch (query->type) {
|
||||
case GST_QUERY_DURATION:{
|
||||
GstClockTime duration;
|
||||
GstClockTime duration = -1;
|
||||
GstFormat fmt;
|
||||
|
||||
gst_query_parse_duration (query, &fmt, NULL);
|
||||
|
@ -416,6 +416,8 @@ gst_hls_demux_src_query (GstPad * pad, GstQuery * query)
|
|||
ret = TRUE;
|
||||
}
|
||||
}
|
||||
GST_INFO_OBJECT (hlsdemux, "GST_QUERY_DURATION returns %s with duration %"
|
||||
GST_TIME_FORMAT, ret ? "TRUE" : "FALSE", GST_TIME_ARGS (duration));
|
||||
break;
|
||||
}
|
||||
case GST_QUERY_URI:
|
||||
|
|
Loading…
Reference in a new issue