Use new gst_bus_pop_filtered().
Original commit message from CVS: * ext/gconf/gstswitchsink.c: * gst/autodetect/gstautoaudiosink.c: Use new gst_bus_pop_filtered().
This commit is contained in:
parent
a769e5e70a
commit
ec2f93e9d2
@ -1,3 +1,9 @@
|
|||||||
|
2007-10-17 Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
|
||||||
|
* ext/gconf/gstswitchsink.c:
|
||||||
|
* gst/autodetect/gstautoaudiosink.c:
|
||||||
|
Use new gst_bus_pop_filtered().
|
||||||
|
|
||||||
2007-10-13 Tim-Philipp Müller <tim at centricular dot net>
|
2007-10-13 Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
|
||||||
* sys/v4l2/gstv4l2src.c:
|
* sys/v4l2/gstv4l2src.c:
|
||||||
|
@ -165,13 +165,10 @@ gst_switch_commit_new_kid (GstSwitchSink * sink)
|
|||||||
/* check if child posted an error message and if so re-post it on our bus
|
/* check if child posted an error message and if so re-post it on our bus
|
||||||
* so that the application gets to see a decent error and not our generic
|
* so that the application gets to see a decent error and not our generic
|
||||||
* fallback error message which is completely indecipherable to the user */
|
* fallback error message which is completely indecipherable to the user */
|
||||||
while ((msg = gst_bus_pop (GST_ELEMENT_BUS (new_kid)))) {
|
msg = gst_bus_pop_filtered (GST_ELEMENT_BUS (new_kid), GST_MESSAGE_ERROR);
|
||||||
if (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_ERROR) {
|
if (msg) {
|
||||||
GST_INFO_OBJECT (sink, "Forwarding kid error: %" GST_PTR_FORMAT, msg);
|
GST_INFO_OBJECT (sink, "Forwarding kid error: %" GST_PTR_FORMAT, msg);
|
||||||
gst_element_post_message (GST_ELEMENT (sink), msg);
|
gst_element_post_message (GST_ELEMENT (sink), msg);
|
||||||
break;
|
|
||||||
}
|
|
||||||
gst_message_unref (msg);
|
|
||||||
}
|
}
|
||||||
/* FIXME: need a translated error message that tells the user to check
|
/* FIXME: need a translated error message that tells the user to check
|
||||||
* her GConf audio/video settings */
|
* her GConf audio/video settings */
|
||||||
|
@ -235,13 +235,9 @@ gst_auto_audio_sink_find_best (GstAutoAudioSink * sink)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* collect all error messages */
|
/* collect all error messages */
|
||||||
while ((message = gst_bus_pop (bus))) {
|
while ((message = gst_bus_pop_filtered (bus, GST_MESSAGE_ERROR))) {
|
||||||
if (GST_MESSAGE_TYPE (message) == GST_MESSAGE_ERROR) {
|
GST_DEBUG_OBJECT (sink, "error message %" GST_PTR_FORMAT, message);
|
||||||
GST_DEBUG_OBJECT (sink, "error message %" GST_PTR_FORMAT, message);
|
errors = g_slist_append (errors, message);
|
||||||
errors = g_slist_append (errors, message);
|
|
||||||
} else {
|
|
||||||
gst_message_unref (message);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
gst_element_set_state (el, GST_STATE_NULL);
|
gst_element_set_state (el, GST_STATE_NULL);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user