ResetEvent (priv->cancel_event);
}
+
+gboolean
+gst_ks_video_device_stream_is_muxed (GstKsVideoDevice * self)
+{
+ GstKsVideoDevicePrivate *priv = GST_KS_VIDEO_DEVICE_GET_PRIVATE (self);
+
+ return priv->is_muxed;
+}
void gst_ks_video_device_cancel (GstKsVideoDevice * self);
void gst_ks_video_device_cancel_stop (GstKsVideoDevice * self);
+gboolean gst_ks_video_device_stream_is_muxed (GstKsVideoDevice * self);
+
G_END_DECLS
#endif /* __GST_KS_VIDEO_DEVICE_H__ */
GstClock *clock;
GstClockTime timestamp;
+ /* Don't timestamp muxed strams */
+ if (!gst_ks_video_device_stream_is_muxed (priv->device)) {
+ duration = timestamp = GST_CLOCK_TIME_NONE;
+ priv->offset++;
+ goto timestamp;
+ }
+
duration = gst_ks_video_device_get_duration (priv->device);
GST_OBJECT_LOCK (self);
priv->prev_ts = timestamp;
}
+timestamp:
GST_BUFFER_OFFSET (buf) = priv->offset;
GST_BUFFER_OFFSET_END (buf) = GST_BUFFER_OFFSET (buf) + 1;
GST_BUFFER_PTS (buf) = timestamp;