Commit a171f30a authored by Sebastian Dröge's avatar Sebastian Dröge 🍵
Browse files

player: Don't crash if playbin is not available but kill the process cleanly

parent b907187a
......@@ -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 =
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment