cogmse: fix printf format and a few ref leaks
This commit is contained in:
parent
e991cb0c15
commit
d464c94cb3
@ -327,6 +327,7 @@ gst_mse_chain_ref (GstPad * pad, GstBuffer * buffer)
|
|||||||
g_cond_wait (fs->cond, fs->lock);
|
g_cond_wait (fs->cond, fs->lock);
|
||||||
if (fs->cancel) {
|
if (fs->cancel) {
|
||||||
g_mutex_unlock (fs->lock);
|
g_mutex_unlock (fs->lock);
|
||||||
|
gst_object_unref (fs);
|
||||||
return GST_FLOW_WRONG_STATE;
|
return GST_FLOW_WRONG_STATE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -358,6 +359,7 @@ gst_mse_chain_test (GstPad * pad, GstBuffer * buffer)
|
|||||||
g_cond_wait (fs->cond, fs->lock);
|
g_cond_wait (fs->cond, fs->lock);
|
||||||
if (fs->cancel) {
|
if (fs->cancel) {
|
||||||
g_mutex_unlock (fs->lock);
|
g_mutex_unlock (fs->lock);
|
||||||
|
gst_object_unref (fs);
|
||||||
return GST_FLOW_WRONG_STATE;
|
return GST_FLOW_WRONG_STATE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -419,7 +421,8 @@ gst_mse_sink_event (GstPad * pad, GstEvent * event)
|
|||||||
gst_event_parse_new_segment_full (event, &update, &rate, &applied_rate,
|
gst_event_parse_new_segment_full (event, &update, &rate, &applied_rate,
|
||||||
&format, &start, &stop, &position);
|
&format, &start, &stop, &position);
|
||||||
|
|
||||||
GST_DEBUG ("new_segment %d %g %g %d %lld %lld %lld",
|
GST_DEBUG ("new_segment %d %g %g %d %" G_GINT64_FORMAT
|
||||||
|
" %" G_GINT64_FORMAT " %" G_GINT64_FORMAT,
|
||||||
update, rate, applied_rate, format, start, stop, position);
|
update, rate, applied_rate, format, start, stop, position);
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -435,6 +438,7 @@ gst_mse_sink_event (GstPad * pad, GstEvent * event)
|
|||||||
}
|
}
|
||||||
|
|
||||||
gst_pad_push_event (fs->srcpad, event);
|
gst_pad_push_event (fs->srcpad, event);
|
||||||
|
gst_object_unref (fs);
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user