gst/mpegstream/gstmpegdemux.c: Add pad to element *after* setting the pad functions so that the scheduler can use the...

Original commit message from CVS:
* gst/mpegstream/gstmpegdemux.c: (gst_mpeg_demux_new_output_pad),
(gst_mpeg_demux_parse_packet), (gst_mpeg_demux_process_private):
Add pad to element *after* setting the pad functions so that
the scheduler can use the correct ones.
This commit is contained in:
Wim Taymans 2004-07-09 14:11:02 +00:00
parent ecbcf5f750
commit 2d2c5eaa54
2 changed files with 10 additions and 1 deletions

View file

@ -1,3 +1,10 @@
2004-07-09 Wim Taymans <wim@fluendo.com>
* gst/mpegstream/gstmpegdemux.c: (gst_mpeg_demux_new_output_pad),
(gst_mpeg_demux_parse_packet), (gst_mpeg_demux_process_private):
Add pad to element *after* setting the pad functions so that
the scheduler can use the correct ones.
2004-07-09 Wim Taymans <wim@fluendo.com>
* ext/theora/theoradec.c: (theora_dec_from_granulepos),

View file

@ -331,7 +331,6 @@ gst_mpeg_demux_new_output_pad (GstMPEGDemux * mpeg_demux,
GstPad *pad;
pad = gst_pad_new_from_template (temp, name);
gst_element_add_pad (GST_ELEMENT (mpeg_demux), pad);
gst_pad_set_formats_function (pad, gst_mpeg_demux_get_src_formats);
gst_pad_set_convert_function (pad, gst_mpeg_parse_convert_src);
@ -341,6 +340,8 @@ gst_mpeg_demux_new_output_pad (GstMPEGDemux * mpeg_demux,
gst_pad_set_query_function (pad, gst_mpeg_parse_handle_src_query);
gst_pad_use_explicit_caps (pad);
gst_element_add_pad (GST_ELEMENT (mpeg_demux), pad);
return pad;
}
@ -714,6 +715,7 @@ done:
/* calculate the amount of real data in this packet */
datalen = packet_length - headerlen + 2;
GST_DEBUG_OBJECT (mpeg_demux, "headerlen is %d, datalen is %d",
headerlen, datalen);