if (dest_format == GST_FORMAT_TIME) {
/* BYTES -> TIME conversion */
GST_DEBUG_OBJECT (parse, "converting bytes -> time");
-
*dest_value = gst_util_uint64_scale (src_value, duration, bytes);
*dest_value *= GST_MSECOND;
GST_DEBUG_OBJECT (parse, "conversion result: %" G_GINT64_FORMAT " ms",
ret = TRUE;
}
} else if (src_format == GST_FORMAT_TIME) {
- GST_DEBUG_OBJECT (parse, "converting time -> bytes");
if (dest_format == GST_FORMAT_BYTES) {
+ GST_DEBUG_OBJECT (parse, "converting time -> bytes");
*dest_value = gst_util_uint64_scale (src_value / GST_MSECOND, bytes,
duration);
GST_DEBUG_OBJECT (parse,
if (klass->set_sink_caps)
res = klass->set_sink_caps (parse, caps);
- parse->negotiated = res;
return res && gst_pad_set_caps (pad, caps);
}
* The opaque #GstBaseParse data structure.
*/
struct _GstBaseParse {
- GstElement element;
- GstAdapter *adapter;
+ GstElement element;
+ GstAdapter *adapter;
/*< protected >*/
/* source and sink pads */
- GstPad *sinkpad;
- GstPad *srcpad;
+ GstPad *sinkpad;
+ GstPad *srcpad;
/* MT-protected (with STREAM_LOCK) */
- GstSegment segment;
+ GstSegment segment;
/* Newsegment event to be sent after SEEK */
GstEvent *pending_segment;
/* Segment event that closes the running segment prior to SEEK */
GstEvent *close_segment;
- /* Caps nego done already? */
- gboolean negotiated;
-
- GMutex *parse_lock;
+ GMutex *parse_lock;
/*< private >*/
gpointer _gst_reserved[GST_PADDING_LARGE];