diff options
Diffstat (limited to 'gst/id3demux/gstid3demux.c')
| -rw-r--r-- | gst/id3demux/gstid3demux.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gst/id3demux/gstid3demux.c b/gst/id3demux/gstid3demux.c index 541e1091..4f24b226 100644 --- a/gst/id3demux/gstid3demux.c +++ b/gst/id3demux/gstid3demux.c @@ -280,7 +280,9 @@ gst_id3demux_add_srcpad (GstID3Demux * id3demux, GstCaps * new_caps) id3demux->src_caps); gst_object_ref (id3demux->srcpad); - return gst_element_add_pad (GST_ELEMENT (id3demux), id3demux->srcpad); + if (!(gst_element_add_pad (GST_ELEMENT (id3demux), id3demux->srcpad))) + return FALSE; + gst_element_no_more_pads (GST_ELEMENT (id3demux)); } return TRUE; |
