summaryrefslogtreecommitdiffstats
path: root/gst/debug/breakmydata.c
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2005-11-21 16:36:05 +0000
committerAndy Wingo <wingo@pobox.com>2005-11-21 16:36:05 +0000
commit0d470f58ca30d7b488e1f1cce1d7bf27bd3239b2 (patch)
tree30fe63cecf438125f1d50d3e290c367c5855a95f /gst/debug/breakmydata.c
parentbba99aa3da1aa594d6908d9d74f3679a8515aecd (diff)
*.*: Ran scripts/update-macros. Oh yes.
Original commit message from CVS: 2005-11-21 Andy Wingo <wingo@pobox.com> * *.h: * *.c: Ran scripts/update-macros. Oh yes.
Diffstat (limited to 'gst/debug/breakmydata.c')
-rw-r--r--gst/debug/breakmydata.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/gst/debug/breakmydata.c b/gst/debug/breakmydata.c
index f9e3be2a..724ac4fd 100644
--- a/gst/debug/breakmydata.c
+++ b/gst/debug/breakmydata.c
@@ -163,7 +163,7 @@ gst_break_my_data_set_property (GObject * object, guint prop_id,
{
GstBreakMyData *bmd = GST_BREAK_MY_DATA (object);
- GST_LOCK (bmd);
+ GST_OBJECT_LOCK (bmd);
switch (prop_id) {
case ARG_SEED:
@@ -183,7 +183,7 @@ gst_break_my_data_set_property (GObject * object, guint prop_id,
break;
}
- GST_UNLOCK (bmd);
+ GST_OBJECT_UNLOCK (bmd);
}
static void
@@ -192,7 +192,7 @@ gst_break_my_data_get_property (GObject * object, guint prop_id, GValue * value,
{
GstBreakMyData *bmd = GST_BREAK_MY_DATA (object);
- GST_LOCK (bmd);
+ GST_OBJECT_LOCK (bmd);
switch (prop_id) {
case ARG_SEED:
@@ -212,7 +212,7 @@ gst_break_my_data_get_property (GObject * object, guint prop_id, GValue * value,
break;
}
- GST_UNLOCK (bmd);
+ GST_OBJECT_UNLOCK (bmd);
}
static GstFlowReturn
@@ -223,7 +223,7 @@ gst_break_my_data_transform_ip (GstBaseTransform * trans, GstBuffer * buf)
g_return_val_if_fail (gst_buffer_is_writable (buf), GST_FLOW_ERROR);
- GST_LOCK (bmd);
+ GST_OBJECT_LOCK (bmd);
if (bmd->skipped < bmd->skip) {
i = bmd->skip - bmd->skipped;
@@ -256,7 +256,7 @@ gst_break_my_data_transform_ip (GstBaseTransform * trans, GstBuffer * buf)
/* don't overflow */
bmd->skipped += MIN (G_MAXUINT - bmd->skipped, GST_BUFFER_SIZE (buf));
- GST_UNLOCK (bmd);
+ GST_OBJECT_UNLOCK (bmd);
return GST_FLOW_OK;
}
@@ -266,10 +266,10 @@ gst_break_my_data_start (GstBaseTransform * trans)
{
GstBreakMyData *bmd = GST_BREAK_MY_DATA (trans);
- GST_LOCK (bmd);
+ GST_OBJECT_LOCK (bmd);
bmd->rand = g_rand_new_with_seed (bmd->seed);
bmd->skipped = 0;
- GST_UNLOCK (bmd);
+ GST_OBJECT_UNLOCK (bmd);
return TRUE;
}
@@ -279,10 +279,10 @@ gst_break_my_data_stop (GstBaseTransform * trans)
{
GstBreakMyData *bmd = GST_BREAK_MY_DATA (trans);
- GST_LOCK (bmd);
+ GST_OBJECT_LOCK (bmd);
g_rand_free (bmd->rand);
bmd->rand = NULL;
- GST_UNLOCK (bmd);
+ GST_OBJECT_UNLOCK (bmd);
return TRUE;
}