GstFlowReturn ret = GST_FLOW_OK;
gboolean drop;
- GST_OBJECT_LOCK (GST_OBJECT (valve));
+ GST_OBJECT_LOCK (valve);
drop = valve->drop;
if (!drop && valve->discont) {
GST_BUFFER_FLAG_SET (buffer, GST_BUFFER_FLAG_DISCONT);
valve->discont = FALSE;
}
- GST_OBJECT_UNLOCK (GST_OBJECT (valve));
+ GST_OBJECT_UNLOCK (valve);
if (drop)
gst_buffer_unref (buffer);
/* Ignore errors if "drop" was changed while the thread was blocked
* downwards
*/
- GST_OBJECT_LOCK (GST_OBJECT (valve));
+ GST_OBJECT_LOCK (valve);
if (valve->drop)
ret = GST_FLOW_OK;
- GST_OBJECT_UNLOCK (GST_OBJECT (valve));
+ GST_OBJECT_UNLOCK (valve);
gst_object_unref (valve);
gboolean ret = TRUE;
gboolean drop;
- GST_OBJECT_LOCK (GST_OBJECT (valve));
+ GST_OBJECT_LOCK (valve);
drop = valve->drop;
- GST_OBJECT_UNLOCK (GST_OBJECT (valve));
+ GST_OBJECT_UNLOCK (valve);
if (drop)
gst_event_unref (event);
/* Ignore errors if "drop" was changed while the thread was blocked
* downwards.
*/
- GST_OBJECT_LOCK (GST_OBJECT (valve));
+ GST_OBJECT_LOCK (valve);
if (valve->drop)
ret = TRUE;
- GST_OBJECT_UNLOCK (GST_OBJECT (valve));
+ GST_OBJECT_UNLOCK (valve);
gst_object_unref (valve);
return ret;
GstFlowReturn ret = GST_FLOW_OK;
gboolean drop;
- GST_OBJECT_LOCK (GST_OBJECT (valve));
+ GST_OBJECT_LOCK (valve);
drop = valve->drop;
- GST_OBJECT_UNLOCK (GST_OBJECT (valve));
+ GST_OBJECT_UNLOCK (valve);
if (drop)
*buf = NULL;
/* Ignore errors if "drop" was changed while the thread was blocked
* downwards
*/
- GST_OBJECT_LOCK (GST_OBJECT (valve));
+ GST_OBJECT_LOCK (valve);
if (valve->drop)
ret = GST_FLOW_OK;
- GST_OBJECT_UNLOCK (GST_OBJECT (valve));
+ GST_OBJECT_UNLOCK (valve);
gst_object_unref (valve);