rtspsrc: reject segment seeks
authorMathieu Duponchelle <mathieu.duponchelle@opencreed.com>
Thu, 25 May 2017 01:44:39 +0000 (03:44 +0200)
committerMathieu Duponchelle <mathieu@centricular.com>
Mon, 26 Mar 2018 19:13:12 +0000 (21:13 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=784681

gst/rtsp/gstrtspsrc.c

index ce17a0e..f5fd695 100644 (file)
@@ -2428,6 +2428,9 @@ gst_rtspsrc_perform_seek (GstRTSPSrc * src, GstEvent * event)
     stop_type = GST_SEEK_TYPE_SET;
   }
 
+  if (flags & GST_SEEK_FLAG_SEGMENT)
+    goto invalid_segment_flag;
+
   /* get flush flag */
   flush = flags & GST_SEEK_FLAG_FLUSH;
   skip = flags & GST_SEEK_FLAG_SKIP;
@@ -2557,6 +2560,11 @@ not_seekable:
     GST_DEBUG_OBJECT (src, "stream is not seekable");
     return FALSE;
   }
+invalid_segment_flag:
+  {
+    GST_WARNING_OBJECT (src, "Segment seeks not supported");
+    return FALSE;
+  }
 }
 
 static gboolean