baseparse: cleanup struct and remove unused member

This commit is contained in:
Mark Nauwelaerts 2010-09-16 11:51:20 +02:00 committed by Tim-Philipp Müller
parent 03164ad8ab
commit e274ebb292
2 changed files with 7 additions and 12 deletions

View file

@ -802,7 +802,6 @@ gst_base_parse_convert (GstBaseParse * parse,
if (dest_format == GST_FORMAT_TIME) { if (dest_format == GST_FORMAT_TIME) {
/* BYTES -> TIME conversion */ /* BYTES -> TIME conversion */
GST_DEBUG_OBJECT (parse, "converting bytes -> time"); GST_DEBUG_OBJECT (parse, "converting bytes -> time");
*dest_value = gst_util_uint64_scale (src_value, duration, bytes); *dest_value = gst_util_uint64_scale (src_value, duration, bytes);
*dest_value *= GST_MSECOND; *dest_value *= GST_MSECOND;
GST_DEBUG_OBJECT (parse, "conversion result: %" G_GINT64_FORMAT " ms", GST_DEBUG_OBJECT (parse, "conversion result: %" G_GINT64_FORMAT " ms",
@ -810,8 +809,8 @@ gst_base_parse_convert (GstBaseParse * parse,
ret = TRUE; ret = TRUE;
} }
} else if (src_format == GST_FORMAT_TIME) { } else if (src_format == GST_FORMAT_TIME) {
GST_DEBUG_OBJECT (parse, "converting time -> bytes");
if (dest_format == GST_FORMAT_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, *dest_value = gst_util_uint64_scale (src_value / GST_MSECOND, bytes,
duration); duration);
GST_DEBUG_OBJECT (parse, GST_DEBUG_OBJECT (parse,
@ -2267,6 +2266,5 @@ gst_base_parse_sink_setcaps (GstPad * pad, GstCaps * caps)
if (klass->set_sink_caps) if (klass->set_sink_caps)
res = klass->set_sink_caps (parse, caps); res = klass->set_sink_caps (parse, caps);
parse->negotiated = res;
return res && gst_pad_set_caps (pad, caps); return res && gst_pad_set_caps (pad, caps);
} }

View file

@ -137,9 +137,6 @@ struct _GstBaseParse {
/* Segment event that closes the running segment prior to SEEK */ /* Segment event that closes the running segment prior to SEEK */
GstEvent *close_segment; GstEvent *close_segment;
/* Caps nego done already? */
gboolean negotiated;
GMutex *parse_lock; GMutex *parse_lock;
/*< private >*/ /*< private >*/