mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-22 17:51:16 +00:00
libs/gst/base/gstbasesrc.c: Answer LATENCY query.
Original commit message from CVS: * libs/gst/base/gstbasesrc.c: (gst_base_src_default_query): Answer LATENCY query.
This commit is contained in:
parent
6f24e3101e
commit
2d4c842ab7
2 changed files with 13 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2007-02-15 Wim Taymans <wim@fluendo.com>
|
||||
|
||||
* libs/gst/base/gstbasesrc.c: (gst_base_src_default_query):
|
||||
Answer LATENCY query.
|
||||
|
||||
2007-02-15 Wim Taymans <wim@fluendo.com>
|
||||
|
||||
* tests/check/gst/gstevent.c: (event_probe), (test_event),
|
||||
|
|
|
@ -735,6 +735,14 @@ gst_base_src_default_query (GstBaseSrc * src, GstQuery * query)
|
|||
break;
|
||||
}
|
||||
case GST_QUERY_LATENCY:
|
||||
/* we can only report the fact that we are live or not, we know nothing
|
||||
* about latency. Subclasses should override and implement something
|
||||
* usefull */
|
||||
GST_LIVE_LOCK (src);
|
||||
gst_query_set_latency (query, src->is_live, 0, -1);
|
||||
GST_LIVE_UNLOCK (src);
|
||||
res = TRUE;
|
||||
break;
|
||||
case GST_QUERY_JITTER:
|
||||
case GST_QUERY_RATE:
|
||||
default:
|
||||
|
|
Loading…
Reference in a new issue