mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-27 10:40:34 +00:00
tools/gst-launch.c: Message was unreffed too soon.
Original commit message from CVS: * tools/gst-launch.c: (event_loop): Message was unreffed too soon.
This commit is contained in:
parent
04312000d0
commit
f60dcb51d5
2 changed files with 9 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2005-05-17 Wim Taymans <wim@fluendo.com>
|
||||
|
||||
* tools/gst-launch.c: (event_loop):
|
||||
Message was unreffed too soon.
|
||||
|
||||
2005-05-16 Andy Wingo <wingo@pobox.com>
|
||||
|
||||
* gst/gstbin.c (sink_iterator_filter): Err... um...
|
||||
|
|
|
@ -391,13 +391,15 @@ event_loop (GstElement * pipeline, gboolean blocking)
|
|||
GstElementState old, new;
|
||||
|
||||
gst_message_parse_state_changed (message, &old, &new);
|
||||
gst_message_unref (message);
|
||||
if (!(old == GST_STATE_PLAYING && new == GST_STATE_PAUSED))
|
||||
if (!(old == GST_STATE_PLAYING && new == GST_STATE_PAUSED)) {
|
||||
gst_message_unref (message);
|
||||
break;
|
||||
}
|
||||
g_print (_
|
||||
("Element \"%s\" has gone from PLAYING to PAUSED, quitting.\n"),
|
||||
GST_STR_NULL (GST_ELEMENT_NAME (GST_MESSAGE_SRC (message))));
|
||||
/* cut out of the event loop if check_intr set us to PAUSED */
|
||||
gst_message_unref (message);
|
||||
return FALSE;
|
||||
}
|
||||
default:
|
||||
|
|
Loading…
Reference in a new issue