mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
rtspsrc: handle seek event on the element
Without this, the user has to wait for rtspsrc to have sent a PLAY request and exposed its pads before seeking it.
This commit is contained in:
parent
2c3c1072f7
commit
bcd367b81d
1 changed files with 3 additions and 1 deletions
|
@ -8962,7 +8962,9 @@ gst_rtspsrc_send_event (GstElement * element, GstEvent * event)
|
|||
|
||||
rtspsrc = GST_RTSPSRC (element);
|
||||
|
||||
if (GST_EVENT_IS_DOWNSTREAM (event)) {
|
||||
if (GST_EVENT_TYPE (event) == GST_EVENT_SEEK) {
|
||||
res = gst_rtspsrc_perform_seek (rtspsrc, event);
|
||||
} else if (GST_EVENT_IS_DOWNSTREAM (event)) {
|
||||
res = gst_rtspsrc_push_event (rtspsrc, event);
|
||||
} else {
|
||||
res = GST_ELEMENT_CLASS (parent_class)->send_event (element, event);
|
||||
|
|
Loading…
Reference in a new issue