ext/amrnb/amrnbdec.c: Mark invalid frame sizes

Original commit message from CVS:
* ext/amrnb/amrnbdec.c:
Mark invalid frame sizes

* ext/mad/gstmad.c: (gst_mad_init), (gst_mad_chain):
UNUSABLE is not to be used here, just push out stuff so
probes can continue linking or making the pad usable.
This commit is contained in:
Wim Taymans 2005-10-06 13:14:38 +00:00
parent 72ba426c00
commit fae42be53d
3 changed files with 14 additions and 13 deletions

View file

@ -1,3 +1,12 @@
2005-10-06 Wim Taymans <wim@fluendo.com>
* ext/amrnb/amrnbdec.c:
Mark invalid frame sizes
* ext/mad/gstmad.c: (gst_mad_init), (gst_mad_chain):
UNUSABLE is not to be used here, just push out stuff so
probes can continue linking or making the pad usable.
2005-10-05 Michael Smith <msmith@fluendo.com>
* gst/realmedia/rmdemux.c: (gst_rmdemux_sink_event),

View file

@ -41,7 +41,7 @@ static GstStaticPadTemplate src_template = GST_STATIC_PAD_TEMPLATE ("src",
);
static const gint block_size[16] = { 12, 13, 15, 17, 19, 20, 26, 31, 5,
0, 0, 0, 0, 0, 0, 0
-1, -1, -1, -1, -1, -1, 0
};
static void gst_amrnbdec_base_init (GstAmrnbDecClass * klass);

View file

@ -346,6 +346,7 @@ gst_mad_init (GstMad * mad)
GST_DEBUG_FUNCPTR (gst_mad_src_query));
gst_pad_set_query_type_function (mad->srcpad,
GST_DEBUG_FUNCPTR (gst_mad_get_query_types));
gst_pad_use_fixed_caps (mad->srcpad);
#if 0
gst_pad_set_convert_function (mad->srcpad,
GST_DEBUG_FUNCPTR (gst_mad_convert_src));
@ -1364,11 +1365,7 @@ gst_mad_chain (GstPad * pad, GstBuffer * buffer)
} else {
mad->tags = gst_tag_list_copy (list);
}
if (GST_PAD_IS_USABLE (mad->srcpad)) {
gst_pad_push_event (mad->srcpad, gst_event_new_tag (list));
} else {
gst_tag_list_free (list);
}
gst_pad_push_event (mad->srcpad, gst_event_new_tag (list));
}
}
}
@ -1406,11 +1403,7 @@ gst_mad_chain (GstPad * pad, GstBuffer * buffer)
GST_TAG_BITRATE, bitrate, NULL);
gst_element_post_message (GST_ELEMENT (mad),
gst_message_new_tag (GST_OBJECT (mad), gst_tag_list_copy (list)));
if (GST_PAD_IS_USABLE (mad->srcpad)) {
gst_pad_push_event (mad->srcpad, gst_event_new_tag (list));
} else {
gst_tag_list_free (list);
}
gst_pad_push_event (mad->srcpad, gst_event_new_tag (list));
}
mad->check_for_xing = FALSE;
@ -1450,8 +1443,7 @@ gst_mad_chain (GstPad * pad, GstBuffer * buffer)
GST_FORMAT_BYTES, x_bytes, GST_FORMAT_TIME, time_offset, NULL);
}
if (GST_PAD_IS_USABLE (mad->srcpad) &&
mad->segment_start <= (time_offset ==
if (mad->segment_start <= (time_offset ==
GST_CLOCK_TIME_NONE ? 0 : time_offset)) {
/* for sample accurate seeking, calculate how many samples