gst/playback/gstdecodebin.c: Use realpad for signal.

Original commit message from CVS:
* gst/playback/gstdecodebin.c: (try_to_link_1):
Use realpad for signal.
This commit is contained in:
Ronald S. Bultje 2005-01-27 14:32:33 +00:00
parent 05c3ee812c
commit b3c629c72f
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2005-01-27 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* gst/playback/gstdecodebin.c: (try_to_link_1):
Use realpad for signal.
2005-01-27 Ronald S. Bultje <rbultje@ronald.bitfreak.net> 2005-01-27 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* ext/mad/gstid3demuxbin.c: (gst_id3demux_bin_base_init): * ext/mad/gstid3demuxbin.c: (gst_id3demux_bin_base_init):

View file

@ -523,7 +523,7 @@ try_to_link_1 (GstDecodeBin * decode_bin, GstPad * pad, GList * factories)
} }
} }
/* make sure we catch unlink signals */ /* make sure we catch unlink signals */
sig = g_signal_connect (G_OBJECT (pad), "unlinked", sig = g_signal_connect (G_OBJECT (GST_PAD_REALIZE (pad)), "unlinked",
G_CALLBACK (unlinked), decode_bin); G_CALLBACK (unlinked), decode_bin);
/* keep a ref to the signal id so that we can disconnect the signal callback */ /* keep a ref to the signal id so that we can disconnect the signal callback */
g_object_set_data (G_OBJECT (pad), "unlinked_id", GINT_TO_POINTER (sig)); g_object_set_data (G_OBJECT (pad), "unlinked_id", GINT_TO_POINTER (sig));