assrender: If the video segment is not in TIME format don't accept it
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 5 Nov 2009 15:41:56 +0000 (16:41 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 5 Nov 2009 16:07:04 +0000 (17:07 +0100)
ext/assrender/gstassrender.c

index c3eb05246f9f2b135d930d43e6baa2ab55ab82cd..97d86d5a5690b7855e5a1ba763d0956c3644bd11 100644 (file)
@@ -688,12 +688,13 @@ gst_assrender_event_video (GstPad * pad, GstEvent * event)
 
         gst_segment_set_newsegment (&render->video_segment, update, rate,
             format, start, stop, time);
+        ret = gst_pad_push_event (render->srcpad, event);
       } else {
         GST_ELEMENT_WARNING (render, STREAM, MUX, (NULL),
             ("received non-TIME newsegment event on video input"));
+        ret = FALSE;
+        gst_event_unref (event);
       }
-
-      ret = gst_pad_event_default (pad, event);
       break;
     }
     case GST_EVENT_TAG: