mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
validate:scenario: Enhance playbin3 stream selection error message
This commit is contained in:
parent
eac403f87c
commit
6a8b0111cd
1 changed files with 12 additions and 3 deletions
|
@ -1276,12 +1276,19 @@ execute_switch_track_pb3 (GstValidateScenario * scenario,
|
||||||
pipeline, "validate-monitor"));
|
pipeline, "validate-monitor"));
|
||||||
|
|
||||||
if (!monitor->stream_collection) {
|
if (!monitor->stream_collection) {
|
||||||
GST_ERROR ("No stream collection message received on the bus");
|
GST_VALIDATE_REPORT (scenario,
|
||||||
|
SCENARIO_ACTION_EXECUTION_ERROR,
|
||||||
|
"No stream collection message received on the bus, "
|
||||||
|
"can not switch track.");
|
||||||
|
res = GST_VALIDATE_EXECUTE_ACTION_ERROR_REPORTED;
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!monitor->streams_selected) {
|
if (!monitor->streams_selected) {
|
||||||
GST_ERROR ("No streams selected message received on the bus");
|
GST_VALIDATE_REPORT (scenario,
|
||||||
|
SCENARIO_ACTION_EXECUTION_ERROR,
|
||||||
|
"No streams selected message received on the bus");
|
||||||
|
res = GST_VALIDATE_EXECUTE_ACTION_ERROR_REPORTED;
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1314,7 +1321,9 @@ execute_switch_track_pb3 (GstValidateScenario * scenario,
|
||||||
|
|
||||||
if (!gst_element_send_event (pipeline,
|
if (!gst_element_send_event (pipeline,
|
||||||
gst_event_new_select_streams (new_streams))) {
|
gst_event_new_select_streams (new_streams))) {
|
||||||
GST_ERROR ("select-streams event not handled");
|
GST_VALIDATE_REPORT (scenario,
|
||||||
|
SCENARIO_ACTION_EXECUTION_ERROR, "select-streams event not handled");
|
||||||
|
res = GST_VALIDATE_EXECUTE_ACTION_ERROR_REPORTED;
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue