mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 07:58:51 +00:00
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:
parent
72ba426c00
commit
fae42be53d
3 changed files with 14 additions and 13 deletions
|
@ -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>
|
2005-10-05 Michael Smith <msmith@fluendo.com>
|
||||||
|
|
||||||
* gst/realmedia/rmdemux.c: (gst_rmdemux_sink_event),
|
* gst/realmedia/rmdemux.c: (gst_rmdemux_sink_event),
|
||||||
|
|
|
@ -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,
|
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);
|
static void gst_amrnbdec_base_init (GstAmrnbDecClass * klass);
|
||||||
|
|
|
@ -346,6 +346,7 @@ gst_mad_init (GstMad * mad)
|
||||||
GST_DEBUG_FUNCPTR (gst_mad_src_query));
|
GST_DEBUG_FUNCPTR (gst_mad_src_query));
|
||||||
gst_pad_set_query_type_function (mad->srcpad,
|
gst_pad_set_query_type_function (mad->srcpad,
|
||||||
GST_DEBUG_FUNCPTR (gst_mad_get_query_types));
|
GST_DEBUG_FUNCPTR (gst_mad_get_query_types));
|
||||||
|
gst_pad_use_fixed_caps (mad->srcpad);
|
||||||
#if 0
|
#if 0
|
||||||
gst_pad_set_convert_function (mad->srcpad,
|
gst_pad_set_convert_function (mad->srcpad,
|
||||||
GST_DEBUG_FUNCPTR (gst_mad_convert_src));
|
GST_DEBUG_FUNCPTR (gst_mad_convert_src));
|
||||||
|
@ -1364,11 +1365,7 @@ gst_mad_chain (GstPad * pad, GstBuffer * buffer)
|
||||||
} else {
|
} else {
|
||||||
mad->tags = gst_tag_list_copy (list);
|
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));
|
||||||
gst_pad_push_event (mad->srcpad, gst_event_new_tag (list));
|
|
||||||
} else {
|
|
||||||
gst_tag_list_free (list);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1406,11 +1403,7 @@ gst_mad_chain (GstPad * pad, GstBuffer * buffer)
|
||||||
GST_TAG_BITRATE, bitrate, NULL);
|
GST_TAG_BITRATE, bitrate, NULL);
|
||||||
gst_element_post_message (GST_ELEMENT (mad),
|
gst_element_post_message (GST_ELEMENT (mad),
|
||||||
gst_message_new_tag (GST_OBJECT (mad), gst_tag_list_copy (list)));
|
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));
|
||||||
gst_pad_push_event (mad->srcpad, gst_event_new_tag (list));
|
|
||||||
} else {
|
|
||||||
gst_tag_list_free (list);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
mad->check_for_xing = FALSE;
|
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);
|
GST_FORMAT_BYTES, x_bytes, GST_FORMAT_TIME, time_offset, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (GST_PAD_IS_USABLE (mad->srcpad) &&
|
if (mad->segment_start <= (time_offset ==
|
||||||
mad->segment_start <= (time_offset ==
|
|
||||||
GST_CLOCK_TIME_NONE ? 0 : time_offset)) {
|
GST_CLOCK_TIME_NONE ? 0 : time_offset)) {
|
||||||
|
|
||||||
/* for sample accurate seeking, calculate how many samples
|
/* for sample accurate seeking, calculate how many samples
|
||||||
|
|
Loading…
Reference in a new issue