mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-26 09:08:14 +00:00
update for basesink event handler changes
This commit is contained in:
parent
d895ac645f
commit
1538803ac4
3 changed files with 10 additions and 9 deletions
|
@ -545,7 +545,7 @@ gst_soup_http_client_sink_event (GstBaseSink * sink, GstEvent * event)
|
|||
GST_DEBUG_OBJECT (souphttpsink, "finished eos");
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
return GST_BASE_SINK_CLASS (parent_class)->event (sink, event);
|
||||
}
|
||||
|
||||
static GstFlowReturn
|
||||
|
|
|
@ -180,7 +180,6 @@ gst_test_sink_event (GstBaseSink * basesink, GstEvent * event)
|
|||
{
|
||||
GstTestClass *klass = GST_TEST_GET_CLASS (basesink);
|
||||
GstTest *test = GST_TEST (basesink);
|
||||
gboolean ret = FALSE;
|
||||
|
||||
switch (GST_EVENT_TYPE (event)) {
|
||||
/*
|
||||
|
@ -217,14 +216,13 @@ gst_test_sink_event (GstBaseSink * basesink, GstEvent * event)
|
|||
}
|
||||
}
|
||||
g_object_thaw_notify (G_OBJECT (test));
|
||||
ret = TRUE;
|
||||
break;
|
||||
}
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
return ret;
|
||||
return GST_BASE_SINK_CLASS (parent_class)->event (basesink, event);
|
||||
}
|
||||
|
||||
static GstFlowReturn
|
||||
|
|
|
@ -780,7 +780,6 @@ gst_multi_file_sink_event (GstBaseSink * sink, GstEvent * event)
|
|||
{
|
||||
GstMultiFileSink *multifilesink;
|
||||
gchar *filename;
|
||||
gboolean res = TRUE;
|
||||
|
||||
multifilesink = GST_MULTI_FILE_SINK (sink);
|
||||
|
||||
|
@ -832,12 +831,16 @@ gst_multi_file_sink_event (GstBaseSink * sink, GstEvent * event)
|
|||
}
|
||||
|
||||
out:
|
||||
return res;
|
||||
return GST_BASE_SINK_CLASS (parent_class)->event (sink, event);
|
||||
|
||||
/* ERRORS */
|
||||
stdio_write_error:
|
||||
GST_ELEMENT_ERROR (multifilesink, RESOURCE, WRITE,
|
||||
("Error while writing to file."), (NULL));
|
||||
return FALSE;
|
||||
{
|
||||
GST_ELEMENT_ERROR (multifilesink, RESOURCE, WRITE,
|
||||
("Error while writing to file."), (NULL));
|
||||
gst_event_unref (event);
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
static gboolean
|
||||
|
|
Loading…
Reference in a new issue