mpegtsmux: fix build error
authorVineeth TM <vineeth.tm@samsung.com>
Mon, 15 Jun 2015 01:34:56 +0000 (10:34 +0900)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 15 Jun 2015 08:12:11 +0000 (10:12 +0200)
after e000a6f0a4984fbe81190df6cd439c70dafde3d6, there is build error in bad plugins
this happens because, GST_CLOCK_STIME_IS_VALID () is being checked for pad_data
but it expects a GstClockTime parameter. Changing the check to 'dts'

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

gst/mpegtsmux/mpegtsmux.c

index 550fa16..208c631 100644 (file)
@@ -1075,7 +1075,7 @@ mpegtsmux_clip_inc_running_time (GstCollectPads * pads,
     else
       dts = -((gint64) time);
 
-    if (GST_CLOCK_STIME_IS_VALID (pad_data))
+    if (!GST_CLOCK_TIME_IS_VALID (pad_data->min_dts))
       pad_data->min_dts = dts;
 
     if (dts < pad_data->min_dts) {