dvbbasebin: Emit no-more-pads when pad is added

This avoids an endless hang with playbin2, which sees dvbbasesbin as
having dynamic pads ... but never emitted no-more-pads.
This commit is contained in:
Edward Hervey 2012-05-22 18:55:38 +02:00 committed by Sebastian Dröge
parent d049eadd50
commit 84fa5ec68d

View file

@ -477,6 +477,7 @@ dvb_base_bin_request_new_pad (GstElement * element,
ghost = gst_ghost_pad_new (pad_name, pad);
g_free (pad_name);
gst_element_add_pad (element, ghost);
gst_element_no_more_pads (element);
return ghost;
}
@ -928,6 +929,7 @@ dvb_base_bin_pad_added_cb (GstElement * mpegtsparse,
program->ghost = gst_ghost_pad_new (padname, pad);
gst_pad_set_active (program->ghost, TRUE);
gst_element_add_pad (GST_ELEMENT (dvbbasebin), program->ghost);
gst_element_no_more_pads (GST_ELEMENT (dvbbasebin));
/* if the program has a pmt, activate it now, otherwise it will get activated
* when there's a PMT */
if (!program->active && program->pmt_pid != G_MAXUINT16)