mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 03:19:40 +00:00
easy fix for mpegdemux being lost for Uraeus and me
Original commit message from CVS: easy fix for mpegdemux being lost for Uraeus and me
This commit is contained in:
parent
4adbb60998
commit
590af8cc07
1 changed files with 12 additions and 3 deletions
|
@ -25,9 +25,18 @@
|
|||
static gboolean
|
||||
plugin_init (GModule *module, GstPlugin *plugin)
|
||||
{
|
||||
gst_mpeg_parse_plugin_init (module, plugin);
|
||||
gst_mpeg_demux_plugin_init (module, plugin);
|
||||
gst_rfc2250_enc_plugin_init (module, plugin);
|
||||
/* mpegdemux needs the bytestream package */
|
||||
if (!gst_library_load ("gstbytestream")) {
|
||||
gst_info ("mpeg_demux:: could not load support library: 'gstbytestream'\n"); return FALSE;
|
||||
}
|
||||
|
||||
/* short-circuit here; this is potentially dangerous since if the second
|
||||
* or third init fails then the whole plug-in will be placed on the register
|
||||
* stack again and the first _init will be called more than once
|
||||
* which GType initialization doesn't like */
|
||||
if (!gst_mpeg_parse_plugin_init (module, plugin)) return FALSE;
|
||||
if (!gst_mpeg_demux_plugin_init (module, plugin)) return FALSE;
|
||||
if (!gst_rfc2250_enc_plugin_init (module, plugin)) return FALSE;
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue