diff options
Diffstat (limited to 'sys/qcam')
-rw-r--r-- | sys/qcam/gstqcamsrc.c | 8 | ||||
-rw-r--r-- | sys/qcam/gstqcamsrc.h | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/qcam/gstqcamsrc.c b/sys/qcam/gstqcamsrc.c index e34a589e..901beca5 100644 --- a/sys/qcam/gstqcamsrc.c +++ b/sys/qcam/gstqcamsrc.c @@ -389,11 +389,11 @@ gst_qcamsrc_change_state (GstElement * element, GstStateChange transition) switch (transition) { case GST_STATE_CHANGE_READY_TO_NULL: - if (GST_FLAG_IS_SET (element, GST_QCAMSRC_OPEN)) + if (GST_OBJECT_FLAG_IS_SET (element, GST_QCAMSRC_OPEN)) gst_qcamsrc_close (GST_QCAMSRC (element)); break; case GST_STATE_CHANGE_NULL_TO_READY: - if (!GST_FLAG_IS_SET (element, GST_QCAMSRC_OPEN)) { + if (!GST_OBJECT_FLAG_IS_SET (element, GST_QCAMSRC_OPEN)) { GST_DEBUG ("opening"); if (!gst_qcamsrc_open (GST_QCAMSRC (element))) { GST_DEBUG ("open failed"); @@ -420,7 +420,7 @@ gst_qcamsrc_open (GstQCamSrc * qcamsrc) return FALSE; } - GST_FLAG_SET (qcamsrc, GST_QCAMSRC_OPEN); + GST_OBJECT_FLAG_SET (qcamsrc, GST_QCAMSRC_OPEN); return TRUE; } @@ -429,7 +429,7 @@ static void gst_qcamsrc_close (GstQCamSrc * src) { qc_close (src->qcam); - GST_FLAG_UNSET (src, GST_QCAMSRC_OPEN); + GST_OBJECT_FLAG_UNSET (src, GST_QCAMSRC_OPEN); } static gboolean diff --git a/sys/qcam/gstqcamsrc.h b/sys/qcam/gstqcamsrc.h index 0bd201c8..a1873f23 100644 --- a/sys/qcam/gstqcamsrc.h +++ b/sys/qcam/gstqcamsrc.h @@ -45,9 +45,9 @@ extern "C" { /* NOTE: per-element flags start with 16 for now */ typedef enum { - GST_QCAMSRC_OPEN = GST_ELEMENT_FLAG_LAST, + GST_QCAMSRC_OPEN = (GST_ELEMENT_FLAG_LAST << 0), - GST_QCAMSRC_FLAG_LAST = GST_ELEMENT_FLAG_LAST+2, + GST_QCAMSRC_FLAG_LAST = (GST_ELEMENT_FLAG_LAST << 2), } GstQCamSrcFlags; typedef struct _GstQCamSrc GstQCamSrc; |