mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-22 23:28:16 +00:00
player: Don't crash if playbin is not available but kill the process cleanly
This commit is contained in:
parent
b907187ade
commit
a171f30ab1
1 changed files with 7 additions and 1 deletions
|
@ -2894,8 +2894,14 @@ gst_player_main (gpointer data)
|
|||
if (self->use_playbin3) {
|
||||
GST_DEBUG_OBJECT (self, "playbin3 enabled");
|
||||
self->playbin = gst_element_factory_make ("playbin3", "playbin3");
|
||||
} else
|
||||
} else {
|
||||
self->playbin = gst_element_factory_make ("playbin", "playbin");
|
||||
}
|
||||
|
||||
if (!self->playbin) {
|
||||
g_error ("GstPlayer: 'playbin' element not found, please check your setup");
|
||||
g_assert_not_reached ();
|
||||
}
|
||||
|
||||
if (self->video_renderer) {
|
||||
GstElement *video_sink =
|
||||
|
|
Loading…
Reference in a new issue