mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 10:25:33 +00:00
mpegaudioparse: remove some pointless g_return_if_fail()s
This commit is contained in:
parent
39018c8547
commit
674323b56d
1 changed files with 4 additions and 7 deletions
|
@ -1447,7 +1447,6 @@ gst_mp3parse_set_property (GObject * object, guint prop_id,
|
||||||
{
|
{
|
||||||
GstMPEGAudioParse *src;
|
GstMPEGAudioParse *src;
|
||||||
|
|
||||||
g_return_if_fail (GST_IS_MP3PARSE (object));
|
|
||||||
src = GST_MP3PARSE (object);
|
src = GST_MP3PARSE (object);
|
||||||
|
|
||||||
switch (prop_id) {
|
switch (prop_id) {
|
||||||
|
@ -1465,7 +1464,6 @@ gst_mp3parse_get_property (GObject * object, guint prop_id, GValue * value,
|
||||||
{
|
{
|
||||||
GstMPEGAudioParse *src;
|
GstMPEGAudioParse *src;
|
||||||
|
|
||||||
g_return_if_fail (GST_IS_MP3PARSE (object));
|
|
||||||
src = GST_MP3PARSE (object);
|
src = GST_MP3PARSE (object);
|
||||||
|
|
||||||
switch (prop_id) {
|
switch (prop_id) {
|
||||||
|
@ -1675,7 +1673,6 @@ mp3parse_bytepos_to_time (GstMPEGAudioParse * mp3parse,
|
||||||
guint64 sum = 0;
|
guint64 sum = 0;
|
||||||
gdouble a, b, fa, fb;
|
gdouble a, b, fa, fb;
|
||||||
|
|
||||||
|
|
||||||
do {
|
do {
|
||||||
sum += mp3parse->vbri_seek_table[i];
|
sum += mp3parse->vbri_seek_table[i];
|
||||||
i++;
|
i++;
|
||||||
|
@ -1853,10 +1850,10 @@ no_pos:
|
||||||
static gboolean
|
static gboolean
|
||||||
mp3parse_src_event (GstPad * pad, GstEvent * event)
|
mp3parse_src_event (GstPad * pad, GstEvent * event)
|
||||||
{
|
{
|
||||||
GstMPEGAudioParse *mp3parse = GST_MP3PARSE (gst_pad_get_parent (pad));
|
GstMPEGAudioParse *mp3parse;
|
||||||
gboolean res = FALSE;
|
gboolean res = FALSE;
|
||||||
|
|
||||||
g_return_val_if_fail (mp3parse != NULL, FALSE);
|
mp3parse = GST_MP3PARSE (gst_pad_get_parent (pad));
|
||||||
|
|
||||||
switch (GST_EVENT_TYPE (event)) {
|
switch (GST_EVENT_TYPE (event)) {
|
||||||
case GST_EVENT_SEEK:
|
case GST_EVENT_SEEK:
|
||||||
|
@ -1877,11 +1874,11 @@ mp3parse_src_query (GstPad * pad, GstQuery * query)
|
||||||
{
|
{
|
||||||
GstFormat format;
|
GstFormat format;
|
||||||
GstClockTime total;
|
GstClockTime total;
|
||||||
GstMPEGAudioParse *mp3parse = GST_MP3PARSE (gst_pad_get_parent (pad));
|
GstMPEGAudioParse *mp3parse;
|
||||||
gboolean res = FALSE;
|
gboolean res = FALSE;
|
||||||
GstPad *peer;
|
GstPad *peer;
|
||||||
|
|
||||||
g_return_val_if_fail (mp3parse != NULL, FALSE);
|
mp3parse = GST_MP3PARSE (gst_pad_get_parent (pad));
|
||||||
|
|
||||||
GST_LOG_OBJECT (pad, "%s query", GST_QUERY_TYPE_NAME (query));
|
GST_LOG_OBJECT (pad, "%s query", GST_QUERY_TYPE_NAME (query));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue