textoverlay: make debug statement more informative
authorMark Nauwelaerts <mnauw@users.sourceforge.net>
Fri, 30 Jun 2017 18:24:14 +0000 (20:24 +0200)
committerMark Nauwelaerts <mnauw@users.sourceforge.net>
Sat, 1 Jul 2017 15:16:33 +0000 (17:16 +0200)
ext/pango/gstbasetextoverlay.c

index 9821a26..71696a6 100644 (file)
@@ -2562,10 +2562,9 @@ gst_base_text_overlay_video_event (GstPad * pad, GstObject * parent,
       gst_event_parse_segment (event, &segment);
 
       if (segment->format == GST_FORMAT_TIME) {
+        gst_segment_copy_into (segment, &overlay->segment);
         GST_DEBUG_OBJECT (overlay, "VIDEO SEGMENT now: %" GST_SEGMENT_FORMAT,
             &overlay->segment);
-
-        gst_segment_copy_into (segment, &overlay->segment);
       } else {
         GST_ELEMENT_WARNING (overlay, STREAM, MUX, (NULL),
             ("received non-TIME newsegment event on video input"));