diff options
author | Stefan Kost <ensonic@users.sourceforge.net> | 2005-10-12 14:29:43 +0000 |
---|---|---|
committer | Stefan Kost <ensonic@users.sourceforge.net> | 2005-10-12 14:29:43 +0000 |
commit | 987ab4dd81113c7a181eafaeb47ffaad3636210b (patch) | |
tree | f31a316c03d9c655fbbd1cc7ca7462e98d740cd6 /ext/esd/esdmon.c | |
parent | f5c93b9561f0c2a34380abcbfc3e09cf16ef6936 (diff) |
renamed GST_FLAGS macros to GST_OBJECT_FLAGS moved bitshift from macro to enum definition
Original commit message from CVS:
* examples/indexing/indexmpeg.c: (main):
* ext/esd/esdmon.c: (gst_esdmon_open_audio),
(gst_esdmon_close_audio), (gst_esdmon_change_state):
* ext/esd/esdmon.h:
* ext/gdk_pixbuf/gstgdkpixbuf.c: (gst_gdk_pixbuf_init):
* ext/pango/gsttextoverlay.c: (gst_textoverlay_init):
* gst/autodetect/gstautoaudiosink.c: (gst_auto_audio_sink_init):
* gst/autodetect/gstautovideosink.c: (gst_auto_video_sink_init):
* gst/avi/gstavimux.c: (gst_avimux_init):
* gst/matroska/matroska-demux.c: (gst_matroska_demux_init):
* gst/multipart/multipartdemux.c: (gst_multipart_demux_init):
* gst/multipart/multipartmux.c: (gst_multipart_mux_init):
* gst/oldcore/gstmultifilesrc.c: (gst_multifilesrc_init),
(gst_multifilesrc_get), (gst_multifilesrc_open_file),
(gst_multifilesrc_close_file), (gst_multifilesrc_change_state):
* gst/oldcore/gstmultifilesrc.h:
* gst/oldcore/gstpipefilter.c: (gst_pipefilter_init),
(gst_pipefilter_open_file), (gst_pipefilter_close_file),
(gst_pipefilter_change_state):
* gst/oldcore/gstpipefilter.h:
* gst/smoothwave/gstsmoothwave.c: (gst_smoothwave_init):
* gst/videomixer/videomixer.c: (gst_videomixer_init):
* sys/osxaudio/gstosxaudiosink.c: (gst_osxaudiosink_init):
* sys/osxaudio/gstosxaudiosink.h:
* sys/osxaudio/gstosxaudiosrc.h:
renamed GST_FLAGS macros to GST_OBJECT_FLAGS
moved bitshift from macro to enum definition
Diffstat (limited to 'ext/esd/esdmon.c')
-rw-r--r-- | ext/esd/esdmon.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/esd/esdmon.c b/ext/esd/esdmon.c index 4b1097b0..5b0f714a 100644 --- a/ext/esd/esdmon.c +++ b/ext/esd/esdmon.c @@ -404,7 +404,7 @@ gst_esdmon_open_audio (GstEsdmon * src) return FALSE; } - GST_FLAG_SET (src, GST_ESDMON_OPEN); + GST_OBJECT_FLAG_SET (src, GST_ESDMON_OPEN); return TRUE; } @@ -418,7 +418,7 @@ gst_esdmon_close_audio (GstEsdmon * src) close (src->fd); src->fd = -1; - GST_FLAG_UNSET (src, GST_ESDMON_OPEN); + GST_OBJECT_FLAG_UNSET (src, GST_ESDMON_OPEN); GST_DEBUG ("esdmon: closed sound device"); } @@ -430,11 +430,11 @@ gst_esdmon_change_state (GstElement * element, GstStateChange transition) /* if going down into NULL state, close the fd if it's open */ if (GST_STATE_PENDING (element) == GST_STATE_NULL) { - if (GST_FLAG_IS_SET (element, GST_ESDMON_OPEN)) + if (GST_OBJECT_FLAG_IS_SET (element, GST_ESDMON_OPEN)) gst_esdmon_close_audio (GST_ESDMON (element)); /* otherwise (READY or higher) we need to open the fd */ } else { - if (!GST_FLAG_IS_SET (element, GST_ESDMON_OPEN)) { + if (!GST_OBJECT_FLAG_IS_SET (element, GST_ESDMON_OPEN)) { if (!gst_esdmon_open_audio (GST_ESDMON (element))) return GST_STATE_CHANGE_FAILURE; } |