rtpbasedepay: remove unused variable
authorMiguel Angel Cabrera Moya <madmac2501@gmail.com>
Mon, 29 Oct 2012 20:29:36 +0000 (21:29 +0100)
committerTim-Philipp Müller <tim@centricular.net>
Mon, 29 Oct 2012 21:20:35 +0000 (21:20 +0000)
https://bugzilla.gnome.org/show_bug.cgi?id=687146

gst-libs/gst/rtp/gstrtpbasedepayload.c

index 1c59aa142fc241a02119820fdab50e96213f416a..524f629d1e10e5ff620a208db88428595a5da8ed 100644 (file)
@@ -622,7 +622,7 @@ static gboolean
 gst_rtp_base_depayload_packet_lost (GstRTPBaseDepayload * filter,
     GstEvent * event)
 {
-  GstClockTime timestamp, duration, position;
+  GstClockTime timestamp, duration;
   GstEvent *sevent;
   const GstStructure *s;
 
@@ -635,10 +635,6 @@ gst_rtp_base_depayload_packet_lost (GstRTPBaseDepayload * filter,
   gst_structure_get_clock_time (s, "timestamp", &timestamp);
   gst_structure_get_clock_time (s, "duration", &duration);
 
-  position = timestamp;
-  if (duration != -1)
-    position += duration;
-
   /* send GAP event */
   sevent = gst_event_new_gap (timestamp, duration);