diff options
Diffstat (limited to 'ext/nas')
-rw-r--r-- | ext/nas/nassink.c | 8 | ||||
-rw-r--r-- | ext/nas/nassink.h | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/ext/nas/nassink.c b/ext/nas/nassink.c index c685eb91..dafe71bc 100644 --- a/ext/nas/nassink.c +++ b/ext/nas/nassink.c @@ -425,7 +425,7 @@ gst_nassink_open_audio (GstNassink * sink) /* Start a flow */ - GST_FLAG_SET (sink, GST_NASSINK_OPEN); + GST_OBJECT_FLAG_SET (sink, GST_NASSINK_OPEN); GST_CAT_DEBUG (NAS, "opened audio device"); return TRUE; @@ -455,7 +455,7 @@ gst_nassink_close_audio (GstNassink * sink) AuCloseServer (sink->audio); sink->audio = NULL; - GST_FLAG_UNSET (sink, GST_NASSINK_OPEN); + GST_OBJECT_FLAG_UNSET (sink, GST_NASSINK_OPEN); GST_CAT_DEBUG (NAS, "closed audio device"); } @@ -471,12 +471,12 @@ gst_nassink_change_state (GstElement * element, GstStateChange transition) switch (GST_STATE_PENDING (element)) { case GST_STATE_NULL: - if (GST_FLAG_IS_SET (element, GST_NASSINK_OPEN)) + if (GST_OBJECT_FLAG_IS_SET (element, GST_NASSINK_OPEN)) gst_nassink_close_audio (nassink); break; case GST_STATE_READY: - if (!GST_FLAG_IS_SET (element, GST_NASSINK_OPEN)) + if (!GST_OBJECT_FLAG_IS_SET (element, GST_NASSINK_OPEN)) gst_nassink_open_audio (nassink); break; diff --git a/ext/nas/nassink.h b/ext/nas/nassink.h index 3206541c..e94a6e68 100644 --- a/ext/nas/nassink.h +++ b/ext/nas/nassink.h @@ -40,8 +40,8 @@ extern "C" { (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_NASSINK)) typedef enum { - GST_NASSINK_OPEN = GST_ELEMENT_FLAG_LAST, - GST_NASSINK_FLAG_LAST = GST_ELEMENT_FLAG_LAST+2 + GST_NASSINK_OPEN = (GST_ELEMENT_FLAG_LAST << 0), + GST_NASSINK_FLAG_LAST = (GST_ELEMENT_FLAG_LAST << 2) } GstNasSinkFlags; typedef struct _GstNassink GstNassink; |