resindvd: avoid crashing in pathological case

When we'd see an unknown stream type, then a SDDS stream.
Then we'd get to the end of the switch with a NULL temp stream
pointer, and dereference it.

Coverity 1139708
This commit is contained in:
Vincent Penquerc'h 2014-04-09 14:37:48 +01:00
parent f255422ec2
commit 612cdeec80

View file

@ -708,7 +708,11 @@ gst_flups_demux_handle_dvd_event (GstFluPSDemux * demux, GstEvent * event)
break;
case 0x7:
/* FIXME: What range is SDDS? */
break;
GST_WARNING_OBJECT (demux,
"Unsupported audio stream format in language code event: %d",
stream_format);
temp = NULL;
continue;
default:
GST_WARNING_OBJECT (demux,
"Unknown audio stream format in language code event: %d",