fix wrong unref in a test

Original commit message from CVS:
fix wrong unref in a test
This commit is contained in:
Thomas Vander Stichele 2005-09-20 10:04:18 +00:00
parent f09d105f14
commit 6044583d32
4 changed files with 8 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2005-09-20 Thomas Vander Stichele <thomas at apestaart dot org>
* check/pipelines/simple_launch_lines.c: (run_pipeline):
fix wrong pop/unref
2005-09-19 Torsten Schoenfeld <kaffeetisch at gmx dot net>
Reviewed by: Tim-Philipp Müller <tim at centricular dot net>

View file

@ -66,7 +66,7 @@ run_pipeline (GstElement * pipe, const gchar * descr,
/* always have to pop the message before getting back into poll */
if (message) {
revent = GST_MESSAGE_TYPE (message);
gst_message_unref (gst_bus_pop (bus));
gst_message_unref (message);
} else {
revent = GST_MESSAGE_UNKNOWN;
}

2
common

@ -1 +1 @@
Subproject commit 13022c3cb4558d201e2ddf3e65d2e36b16eedc4a
Subproject commit cd4da6a319d9f92d28f7b8a3b412577e6de50b64

View file

@ -66,7 +66,7 @@ run_pipeline (GstElement * pipe, const gchar * descr,
/* always have to pop the message before getting back into poll */
if (message) {
revent = GST_MESSAGE_TYPE (message);
gst_message_unref (gst_bus_pop (bus));
gst_message_unref (message);
} else {
revent = GST_MESSAGE_UNKNOWN;
}