mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-12 03:16:33 +00:00
Added a reference to typefind.
Original commit message from CVS: Added a reference to typefind.
This commit is contained in:
parent
6faaf698e6
commit
0eb3cc9ca4
1 changed files with 3 additions and 0 deletions
|
@ -186,12 +186,15 @@ gst_typefind_chain (GstPad *pad, GstBuffer *buf)
|
||||||
|
|
||||||
{
|
{
|
||||||
int oldstate = GST_STATE(typefind);
|
int oldstate = GST_STATE(typefind);
|
||||||
|
gst_object_ref (GST_OBJECT (typefind));
|
||||||
gtk_signal_emit (GTK_OBJECT (typefind), gst_typefind_signals[HAVE_TYPE],
|
gtk_signal_emit (GTK_OBJECT (typefind), gst_typefind_signals[HAVE_TYPE],
|
||||||
typefind->caps);
|
typefind->caps);
|
||||||
if (GST_STATE(typefind) != oldstate) {
|
if (GST_STATE(typefind) != oldstate) {
|
||||||
|
gst_object_unref (GST_OBJECT (typefind));
|
||||||
GST_DEBUG(0, "state changed during signal, aborting\n");
|
GST_DEBUG(0, "state changed during signal, aborting\n");
|
||||||
cothread_switch(cothread_current_main());
|
cothread_switch(cothread_current_main());
|
||||||
}
|
}
|
||||||
|
gst_object_unref (GST_OBJECT (typefind));
|
||||||
}
|
}
|
||||||
|
|
||||||
gst_pad_set_caps (pad, caps);
|
gst_pad_set_caps (pad, caps);
|
||||||
|
|
Loading…
Reference in a new issue