summaryrefslogtreecommitdiffstats
path: root/gst/modplug
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.net>2005-07-31 20:21:45 +0000
committerTim-Philipp Müller <tim@centricular.net>2005-07-31 20:21:45 +0000
commit21e493150d2e8a64ce7a952adcf3b6603f525839 (patch)
tree289d3d374a1dcf4caa7753effa059bed4c74da00 /gst/modplug
parent6f358dcc1240add636c71f1de39b140cd384abe3 (diff)
downloadgst-plugins-bad-21e493150d2e8a64ce7a952adcf3b6603f525839.tar.gz
gst-plugins-bad-21e493150d2e8a64ce7a952adcf3b6603f525839.tar.bz2
gst-plugins-bad-21e493150d2e8a64ce7a952adcf3b6603f525839.zip
gst/modplug/gstmodplug.cc: Don't crash if a query comes in and we're not set up yet (fixes #312121).
Original commit message from CVS: Reviewed by: Tim-Philipp Müller <tim at centricular dot net> * gst/modplug/gstmodplug.cc: Don't crash if a query comes in and we're not set up yet (fixes #312121).
Diffstat (limited to 'gst/modplug')
-rw-r--r--gst/modplug/gstmodplug.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/gst/modplug/gstmodplug.cc b/gst/modplug/gstmodplug.cc
index 6d4c4ab5..afdcf3ce 100644
--- a/gst/modplug/gstmodplug.cc
+++ b/gst/modplug/gstmodplug.cc
@@ -333,6 +333,9 @@ gst_modplug_src_query (GstPad * pad, GstQueryType type,
modplug = GST_MODPLUG (gst_pad_get_parent (pad));
+ if (!modplug->mSoundFile)
+ return FALSE;
+
switch (type) {
case GST_QUERY_TOTAL:
switch (*format) {