c->index = i->index;
c->channel_map = i->channel_map;
c->volume = i->volume;
- c->muted = !!i->mute;
+ c->muted = ! !i->mute;
c->type = GST_PULSEMIXER_SINK;
if (c->track) {
c->index = i->index;
c->channel_map = i->channel_map;
c->volume = i->volume;
- c->muted = !!i->mute;
+ c->muted = ! !i->mute;
c->type = GST_PULSEMIXER_SOURCE;
if (c->track) {
{
GstPulseMixerCtrl *c = (GstPulseMixerCtrl *) userdata;
- c->operation_success = !!success;
+ c->operation_success = ! !success;
pa_threaded_mainloop_signal (c->mainloop, 0);
}
/* override with a custom clock */
if (GST_BASE_AUDIO_SINK (pulsesink)->provided_clock)
gst_object_unref (GST_BASE_AUDIO_SINK (pulsesink)->provided_clock);
+#if GST_CHECK_VERSION(0, 10, 31) || (GST_CHECK_VERSION(0, 10, 30) && GST_VERSION_NANO > 0)
GST_BASE_AUDIO_SINK (pulsesink)->provided_clock =
gst_audio_clock_new_full ("GstPulseSinkClock",
(GstAudioClockGetTimeFunc) gst_pulsesink_get_time,
gst_object_ref (pulsesink), (GDestroyNotify) gst_object_unref);
+#else
+ GST_BASE_AUDIO_SINK (pulsesink)->provided_clock =
+ gst_audio_clock_new ("GstPulseSinkClock",
+ (GstAudioClockGetTimeFunc) gst_pulsesink_get_time, pulsesink);
+#endif
break;
case GST_STATE_CHANGE_PAUSED_TO_PLAYING:
gst_element_post_message (element,
{
GstPulseSrc *pulsesrc = GST_PULSESRC_CAST (userdata);
- pulsesrc->operation_success = !!success;
+ pulsesrc->operation_success = ! !success;
pa_threaded_mainloop_signal (pulsesrc->mainloop, 0);
}