diff options
author | Stefan Kost <ensonic@users.sourceforge.net> | 2008-06-24 16:22:45 +0000 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2009-10-29 11:17:16 +0100 |
commit | 917d1c4be0dc58990c822f90cf9feddadf6ce2a0 (patch) | |
tree | 04789ab05069240eda425a3b090366084e5092c2 | |
parent | ca7828940d310d92a6015a40873b33347ee7805d (diff) |
gst/playback/gstqueue2.c: Do not double notify. Remove the unsued return value.
Original commit message from CVS:
* gst/playback/gstqueue2.c:
Do not double notify. Remove the unsued return value.
-rw-r--r-- | gst/playback/gstqueue2.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/gst/playback/gstqueue2.c b/gst/playback/gstqueue2.c index 73838c09b1..8a7255b4c5 100644 --- a/gst/playback/gstqueue2.c +++ b/gst/playback/gstqueue2.c @@ -1927,7 +1927,7 @@ gst_queue_change_state (GstElement * element, GstStateChange transition) #define QUEUE_THRESHOLD_CHANGE(q)\ g_cond_signal (queue->item_add); -static gboolean +static void gst_queue_set_temp_location (GstQueue * queue, const gchar * location) { GstState state; @@ -1943,16 +1943,13 @@ gst_queue_set_temp_location (GstQueue * queue, const gchar * location) g_free (queue->temp_location); queue->temp_location = g_strdup (location); - g_object_notify (G_OBJECT (queue), "temp-location"); - - return TRUE; + return; /* ERROR */ wrong_state: { - GST_DEBUG_OBJECT (queue, "setting temp-location in wrong state"); + GST_WARNING_OBJECT (queue, "setting temp-location in wrong state"); GST_OBJECT_UNLOCK (queue); - return FALSE; } } |