gst_object_unref (muxerpad);
} else {
if (ebin->srcpad) {
+ /* encodebin static source pad */
gst_ghost_pad_set_target (GST_GHOST_PAD (ebin->srcpad), srcpad);
} else {
if (!gst_encode_base_bin_create_src_pad (ebin, srcpad)) {
* but for the time being let's assume it's a static pad :) */
muxerpad = gst_element_get_static_pad (muxer, "src");
if (ebin->srcpad) {
+ /* encodebin static source pad */
if (G_UNLIKELY (muxerpad == NULL))
goto no_muxer_pad;
if (!gst_ghost_pad_set_target (GST_GHOST_PAD (ebin->srcpad), muxerpad))
stream_group_remove (ebin, (StreamGroup *) ebin->streams->data);
if (ebin->srcpad) {
- /* Set ghostpad target to NULL */
+ /* encodebin static source pad, set ghostpad target to NULL */
gst_ghost_pad_set_target (GST_GHOST_PAD (ebin->srcpad), NULL);
}
ebin->muxer = NULL;
}
- if (!element->srcpads) {
+ if (!ebin->srcpad) {
+ /* encodebin2 dynamic source pads */
while (element->srcpads)
gst_element_remove_pad (element, element->srcpads->data);
}