videorate: ignore GAP event
authorMatej Knopp <matej.knopp@gmail.com>
Sun, 28 Jul 2013 21:38:06 +0000 (23:38 +0200)
committerSebastian Dröge <slomo@circular-chaos.org>
Mon, 29 Jul 2013 06:24:06 +0000 (08:24 +0200)
videorate automatically fills gaps with the previous frames.

https://bugzilla.gnome.org/show_bug.cgi?id=705048

gst/videorate/gstvideorate.c

index 75c3371..de53b7a 100644 (file)
@@ -779,6 +779,10 @@ gst_video_rate_sink_event (GstBaseTransform * trans, GstEvent * event)
       GST_DEBUG_OBJECT (videorate, "Got FLUSH_STOP");
       gst_video_rate_reset (videorate);
       break;
+    case GST_EVENT_GAP:
+      /* no gaps after videorate, ignore the event */
+      gst_event_unref (event);
+      return TRUE;
     default:
       break;
   }