From 795615d52e52f46cf20be820d1b7b59ba1c265bc Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Wed, 1 Dec 2004 17:58:19 +0000 Subject: [PATCH] gst/playback/gstplaybasebin.c: Don't crash on EMPTY caps (e.g. when the demuxer didn't recognize the contained stream). Original commit message from CVS: * gst/playback/gstplaybasebin.c: (gst_play_base_bin_change_state): Don't crash on EMPTY caps (e.g. when the demuxer didn't recognize the contained stream). --- ChangeLog | 6 ++++++ gst/playback/gstplaybasebin.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index ac11777..f926014 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2004-12-01 Ronald S. Bultje + * gst/playback/gstplaybasebin.c: (gst_play_base_bin_change_state): + Don't crash on EMPTY caps (e.g. when the demuxer didn't recognize + the contained stream). + +2004-12-01 Ronald S. Bultje + * ext/faad/gstfaad.c: (gst_faad_srcconnect), (gst_faad_chain): Oops, remove debug. diff --git a/gst/playback/gstplaybasebin.c b/gst/playback/gstplaybasebin.c index 59e67a4..63522e6 100644 --- a/gst/playback/gstplaybasebin.c +++ b/gst/playback/gstplaybasebin.c @@ -1207,7 +1207,7 @@ gst_play_base_bin_change_state (GstElement * element) /* We're no audio/video and the only stream... We could * be something not-media that's detected because then our * typefind doesn't mess up with mp3 (bz2, gz, elf, ...) */ - if (info->caps) { + if (info->caps && !gst_caps_is_empty (info->caps)) { const gchar *mime = gst_structure_get_name (gst_caps_get_structure (info->caps, 0)); -- 2.7.4