Comparing a Gst_BUFFER_TIMESTAMP

iron_guitarist1987 jtrinidadperez at gmail.com
Tue Dec 25 23:12:58 PST 2012


Hello all,

I have a pipeline with some custom plugins. When I run the pipeline, my
first buffer ( in milliseconds) is negative. When I try to add the lines
below, it doesn't work. For some reason, it thinks the negative number is
actually positive

#define GST_TIME_MS(buf) GST_TIME_AS_MSECONDS(GST_BUFFER_TIMESTAMP(buf))

if(GST_TIME_MS(buf) < 0){
  gst_buffer_unref(buf)
  return GST_FLOW_OK;
}

The if never runs, even when the first timestamp is negative.



-----
All your bases are belong to us.
--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Comparing-a-Gst-BUFFER-TIMESTAMP-tp4657600.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list