diff options
author | Edward Hervey <bilboed@bilboed.com> | 2009-04-18 18:11:00 +0200 |
---|---|---|
committer | Edward Hervey <bilboed@bilboed.com> | 2009-04-18 18:51:28 +0200 |
commit | 0cb5b42d546538b455ac3bbe90b07e3eb67eb820 (patch) | |
tree | 24b178742be806e745b7a3891aa0d63920c364b4 /gst/rtp/gstrtpmpvpay.c | |
parent | cdb03bdc2b4548909f3f47eec6dfbbb3b5159411 (diff) |
Remove trivial unused variables detected by CLang static analyzer.
Diffstat (limited to 'gst/rtp/gstrtpmpvpay.c')
-rw-r--r-- | gst/rtp/gstrtpmpvpay.c | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/gst/rtp/gstrtpmpvpay.c b/gst/rtp/gstrtpmpvpay.c index cd267305..14a74cf8 100644 --- a/gst/rtp/gstrtpmpvpay.c +++ b/gst/rtp/gstrtpmpvpay.c @@ -114,18 +114,8 @@ gst_rtp_mpv_pay_finalize (GObject * object) static gboolean gst_rtp_mpv_pay_setcaps (GstBaseRTPPayload * payload, GstCaps * caps) { - const char *stname; - GstStructure *structure; - gboolean res; - - structure = gst_caps_get_structure (caps, 0); - - stname = gst_structure_get_name (structure); - gst_basertppayload_set_options (payload, "video", FALSE, "MPV", 90000); - res = gst_basertppayload_set_outcaps (payload, NULL); - - return res; + return gst_basertppayload_set_outcaps (payload, NULL); } static GstFlowReturn @@ -193,15 +183,12 @@ gst_rtp_mpv_pay_handle_buffer (GstBaseRTPPayload * basepayload, GstBuffer * buffer) { GstRTPMPVPay *rtpmpvpay; - guint size, avail, packet_len; - guint8 *data; + guint avail, packet_len; GstClockTime timestamp, duration; GstFlowReturn ret; rtpmpvpay = GST_RTP_MPV_PAY (basepayload); - size = GST_BUFFER_SIZE (buffer); - data = GST_BUFFER_DATA (buffer); timestamp = GST_BUFFER_TIMESTAMP (buffer); duration = GST_BUFFER_DURATION (buffer); |