- avoid segfault on type 3 stream (fileinfo)

Original commit message from CVS:
- avoid segfault on type 3 stream (fileinfo)
- typo fix
This commit is contained in:
Stéphane Loeuillet 2004-10-03 12:39:19 +00:00
parent d341453e78
commit d38f0983b0

View file

@ -550,6 +550,7 @@ gst_rmdemux_add_stream (GstRMDemux * rmdemux, GstRMDemuxStream * stream)
rmdemux->n_audio_streams++;
} else {
g_print ("not adding stream of type %d\n", stream->subtype);
return;
}
GST_PAD_ELEMENT_PRIVATE (stream->pad) = stream;
@ -739,7 +740,7 @@ gst_rmdemux_parse_mdpr (GstRMDemux * rmdemux, void *data, int length)
stream->rate = RMDEMUX_GUINT16_GET (data + offset + 16);
break;
case GST_RMDEMUX_STREAM_AUDIO:
/* .ra4/.ra5 => audio/x-pn-realvideo, version=4,5 */
/* .ra4/.ra5 => audio/x-pn-realaudio, version=4,5 */
stream->fourcc = RMDEMUX_FOURCC_GET (data + offset + 8);
stream->rate = RMDEMUX_GUINT32_GET (data + offset + 48);