~ubuntu-branches/ubuntu/feisty/gst-plugins-good0.10/feisty-security

« back to all changes in this revision

Viewing changes to ext/gconf/gstgconfaudiosrc.c

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Dröge
  • Date: 2006-12-21 21:12:15 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20061221211215-3uukkusokhe0nk4f
Tags: 0.10.5-0ubuntu1
* Sync with pkg-gstreamer SVN:
  + debian/rules:
    - Use Ubuntu as distribution name and point to the proper Launchpad URL
  + debian/patches/01_esdsink-priority.patch:
    - Mark the esdsink with rank primary-2 to get
      pulse > alsadmix > esd > alsa > oss

Show diffs side-by-side

added added

removed removed

Lines of Context:
102
102
  src->client = gconf_client_get_default ();
103
103
  gconf_client_add_dir (src->client, GST_GCONF_DIR,
104
104
      GCONF_CLIENT_PRELOAD_RECURSIVE, NULL);
105
 
  gconf_client_notify_add (src->client,
 
105
  src->gconf_notify_id = gconf_client_notify_add (src->client,
106
106
      GST_GCONF_DIR "/" GST_GCONF_AUDIOSRC_KEY,
107
107
      cb_toggle_element, src, NULL, NULL);
108
108
}
113
113
  GstGConfAudioSrc *src = GST_GCONF_AUDIO_SRC (object);
114
114
 
115
115
  if (src->client) {
 
116
    if (src->gconf_notify_id) {
 
117
      gconf_client_notify_remove (src->client, src->gconf_notify_id);
 
118
      src->gconf_notify_id = 0;
 
119
    }
 
120
 
116
121
    g_object_unref (G_OBJECT (src->client));
117
122
    src->client = NULL;
118
123
  }
126
131
static gboolean
127
132
do_toggle_element (GstGConfAudioSrc * src)
128
133
{
 
134
  GstState cur, next;
129
135
  GstPad *targetpad;
130
136
  gchar *new_gconf_str;
131
137
 
138
144
    return TRUE;
139
145
  }
140
146
 
 
147
  GST_OBJECT_LOCK (src);
 
148
  cur = GST_STATE (src);
 
149
  next = GST_STATE_PENDING (src);
 
150
  GST_OBJECT_UNLOCK (src);
 
151
 
 
152
  if (cur >= GST_STATE_READY || next == GST_STATE_PAUSED) {
 
153
    GST_DEBUG_OBJECT (src, "already running, ignoring GConf change");
 
154
    return TRUE;
 
155
  }
 
156
 
 
157
  GST_DEBUG_OBJECT (src, "GConf key changed: '%s' to '%s'",
 
158
      GST_STR_NULL (src->gconf_str), GST_STR_NULL (new_gconf_str));
 
159
 
141
160
  g_free (src->gconf_str);
142
161
  src->gconf_str = new_gconf_str;
143
162