summaryrefslogtreecommitdiffstats
path: root/ext/artsd
diff options
context:
space:
mode:
Diffstat (limited to 'ext/artsd')
-rw-r--r--ext/artsd/gstartsdsink.c8
-rw-r--r--ext/artsd/gstartsdsink.h4
2 files changed, 6 insertions, 6 deletions
diff --git a/ext/artsd/gstartsdsink.c b/ext/artsd/gstartsdsink.c
index f3a06c6c..5dcade2d 100644
--- a/ext/artsd/gstartsdsink.c
+++ b/ext/artsd/gstartsdsink.c
@@ -304,7 +304,7 @@ GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
/* FIXME: check connection */
/* GST_DEBUG ("artsdsink: can't open connection to aRtsd server"); */
- GST_FLAG_SET (sink, GST_ARTSDSINK_OPEN);
+ GST_OBJECT_FLAG_SET (sink, GST_ARTSDSINK_OPEN);
sink->connected = TRUE;
return TRUE;
@@ -318,7 +318,7 @@ gst_artsdsink_close_audio (GstArtsdsink * sink)
arts_close_stream (sink->stream);
arts_free ();
- GST_FLAG_UNSET (sink, GST_ARTSDSINK_OPEN);
+ GST_OBJECT_FLAG_UNSET (sink, GST_ARTSDSINK_OPEN);
sink->connected = FALSE;
g_print ("artsdsink: closed connection\n");
@@ -331,11 +331,11 @@ gst_artsdsink_change_state (GstElement * element, GstStateChange transition)
/* if going down into NULL state, close the stream if it's open */
if (GST_STATE_PENDING (element) == GST_STATE_NULL) {
- if (GST_FLAG_IS_SET (element, GST_ARTSDSINK_OPEN))
+ if (GST_OBJECT_FLAG_IS_SET (element, GST_ARTSDSINK_OPEN))
gst_artsdsink_close_audio (GST_ARTSDSINK (element));
/* otherwise (READY or higher) we need to open the stream */
} else {
- if (!GST_FLAG_IS_SET (element, GST_ARTSDSINK_OPEN)) {
+ if (!GST_OBJECT_FLAG_IS_SET (element, GST_ARTSDSINK_OPEN)) {
if (!gst_artsdsink_open_audio (GST_ARTSDSINK (element)))
return GST_STATE_CHANGE_FAILURE;
}
diff --git a/ext/artsd/gstartsdsink.h b/ext/artsd/gstartsdsink.h
index 6cece273..64b3a2a2 100644
--- a/ext/artsd/gstartsdsink.h
+++ b/ext/artsd/gstartsdsink.h
@@ -41,8 +41,8 @@ extern "C" {
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_ARTSDSINK))
typedef enum {
- GST_ARTSDSINK_OPEN = GST_ELEMENT_FLAG_LAST,
- GST_ARTSDSINK_FLAG_LAST = GST_ELEMENT_FLAG_LAST+2,
+ GST_ARTSDSINK_OPEN = (GST_ELEMENT_FLAG_LAST << 0)
+ GST_ARTSDSINK_FLAG_LAST = (GST_ELEMENT_FLAG_LAST << 2),
} GstArtsdSinkFlags;
typedef struct _GstArtsdsink GstArtsdsink;