basesrc: Remove unused assignment in perform_seek()
authorChangbok Chea <changbok.chea@gmail.com>
Thu, 23 Apr 2015 00:06:42 +0000 (09:06 +0900)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 23 Apr 2015 13:03:23 +0000 (14:03 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=748345

libs/gst/base/gstbasesrc.c

index 1d8cc58..6ab4816 100644 (file)
@@ -1706,12 +1706,6 @@ gst_base_src_perform_seek (GstBaseSrc * src, GstEvent * event, gboolean unlock)
       gst_element_post_message (GST_ELEMENT (src), message);
     }
 
-    /* for deriving a stop position for the playback segment from the seek
-     * segment, we must take the duration when the stop is not set */
-    /* FIXME: This is never used below */
-    if ((stop = seeksegment.stop) == -1)
-      stop = seeksegment.duration;
-
     src->priv->segment_pending = TRUE;
     src->priv->segment_seqnum = seqnum;
   }