mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
concat: Allow seeking on the currently playing stream
This is consistent with the stream time reporting.
This commit is contained in:
parent
b38264a9cb
commit
ed15b30930
1 changed files with 13 additions and 3 deletions
|
@ -563,9 +563,19 @@ gst_concat_src_event (GstPad * pad, GstObject * parent, GstEvent * event)
|
|||
|
||||
switch (GST_EVENT_TYPE (event)) {
|
||||
case GST_EVENT_SEEK:{
|
||||
/* We don't support seeking */
|
||||
gst_event_unref (event);
|
||||
ret = FALSE;
|
||||
GstPad *sinkpad = NULL;
|
||||
|
||||
g_mutex_lock (&self->lock);
|
||||
if ((sinkpad = self->current_sinkpad))
|
||||
gst_object_ref (sinkpad);
|
||||
g_mutex_unlock (&self->lock);
|
||||
if (sinkpad) {
|
||||
ret = gst_pad_push_event (sinkpad, event);
|
||||
gst_object_unref (sinkpad);
|
||||
} else {
|
||||
gst_event_unref (event);
|
||||
ret = FALSE;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case GST_EVENT_QOS:{
|
||||
|
|
Loading…
Reference in a new issue