From: Jan UrbaƄski Date: Mon, 15 Mar 2010 23:35:46 +0000 (+0100) Subject: flvmux: Remove the send_codec_data field from GstFlvPad X-Git-Tag: 1.19.3~509^2~8961 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ef8f7614ff77ed9ce8979ebdbb96032ba768701d;p=platform%2Fupstream%2Fgstreamer.git flvmux: Remove the send_codec_data field from GstFlvPad That field is not used anymore after the changes in 9fdecbc1c11f4e5af6578bba32a9b32771029d33. --- diff --git a/gst/flv/gstflvmux.c b/gst/flv/gstflvmux.c index 505e0c2232..9250ffd3aa 100644 --- a/gst/flv/gstflvmux.c +++ b/gst/flv/gstflvmux.c @@ -301,14 +301,8 @@ gst_flv_mux_video_pad_setcaps (GstPad * pad, GstCaps * caps) if (ret && gst_structure_has_field (s, "codec_data")) { const GValue *val = gst_structure_get_value (s, "codec_data"); - if (val) { + if (val) cpad->video_codec_data = gst_buffer_ref (gst_value_get_buffer (val)); - cpad->sent_codec_data = FALSE; - } else { - cpad->sent_codec_data = TRUE; - } - } else { - cpad->sent_codec_data = TRUE; } gst_object_unref (mux); @@ -455,14 +449,8 @@ gst_flv_mux_audio_pad_setcaps (GstPad * pad, GstCaps * caps) if (ret && gst_structure_has_field (s, "codec_data")) { const GValue *val = gst_structure_get_value (s, "codec_data"); - if (val) { + if (val) cpad->audio_codec_data = gst_buffer_ref (gst_value_get_buffer (val)); - cpad->sent_codec_data = FALSE; - } else { - cpad->sent_codec_data = TRUE; - } - } else { - cpad->sent_codec_data = TRUE; } gst_object_unref (mux); @@ -525,8 +513,6 @@ gst_flv_mux_request_new_pad (GstElement * element, cpad->video_codec = G_MAXUINT; cpad->video_codec_data = NULL; - cpad->sent_codec_data = FALSE; - cpad->last_timestamp = 0; /* FIXME: hacked way to override/extend the event function of diff --git a/gst/flv/gstflvmux.h b/gst/flv/gstflvmux.h index 1af6530554..27de8bbb76 100644 --- a/gst/flv/gstflvmux.h +++ b/gst/flv/gstflvmux.h @@ -52,7 +52,6 @@ typedef struct guint video_codec; GstBuffer *video_codec_data; - gboolean sent_codec_data; GstClockTime last_timestamp; } GstFlvPad;