mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-14 19:35:39 +00:00
Adapt tutorial code to new xcode ios templates
This commit is contained in:
parent
217845f35d
commit
4bd417f339
8 changed files with 76 additions and 10 deletions
|
@ -496,7 +496,10 @@ GST_PLUGIN_STATIC_DECLARE(sdp);
|
||||||
void
|
void
|
||||||
gst_ios_init (void)
|
gst_ios_init (void)
|
||||||
{
|
{
|
||||||
gst_init (NULL, NULL);
|
GstPluginFeature *plugin;
|
||||||
|
GstRegistry *reg;
|
||||||
|
|
||||||
|
gst_init (NULL, NULL);
|
||||||
|
|
||||||
#if defined(GST_IOS_PLUGIN_COREELEMENTS) || defined(GST_IOS_PLUGINS_CORE)
|
#if defined(GST_IOS_PLUGIN_COREELEMENTS) || defined(GST_IOS_PLUGINS_CORE)
|
||||||
GST_PLUGIN_STATIC_REGISTER(coreelements);
|
GST_PLUGIN_STATIC_REGISTER(coreelements);
|
||||||
|
@ -990,4 +993,14 @@ gst_ios_init (void)
|
||||||
#if defined(GST_IOS_PLUGIN_SDP) || defined(GST_IOS_PLUGINS_NET)
|
#if defined(GST_IOS_PLUGIN_SDP) || defined(GST_IOS_PLUGINS_NET)
|
||||||
GST_PLUGIN_STATIC_REGISTER(sdp);
|
GST_PLUGIN_STATIC_REGISTER(sdp);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Lower the ranks of filesrc and giosrc so iosavassetsrc is
|
||||||
|
* tried first in gst_element_make_from_uri() for file:// */
|
||||||
|
reg = gst_registry_get_default();
|
||||||
|
plugin = gst_registry_lookup_feature(reg, "filesrc");
|
||||||
|
if (plugin)
|
||||||
|
gst_plugin_feature_set_rank(plugin, GST_RANK_SECONDARY);
|
||||||
|
plugin = gst_registry_lookup_feature(reg, "giosrc");
|
||||||
|
if (plugin)
|
||||||
|
gst_plugin_feature_set_rank(plugin, GST_RANK_SECONDARY-1);
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,9 +3,12 @@
|
||||||
|
|
||||||
#include <gst/gst.h>
|
#include <gst/gst.h>
|
||||||
|
|
||||||
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
/* Uncomment each line to enable the plugin categories that your application needs.
|
/* Uncomment each line to enable the plugin categories that your application needs.
|
||||||
* You can also enable individual plugins. See gst_ios_init.c to see their names
|
* You can also enable individual plugins. See gst_ios_init.c to see their names
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define GST_IOS_PLUGINS_CORE
|
#define GST_IOS_PLUGINS_CORE
|
||||||
//#define GST_IOS_PLUGINS_CAPTURE
|
//#define GST_IOS_PLUGINS_CAPTURE
|
||||||
//#define GST_IOS_PLUGINS_CODECS_RESTRICTED
|
//#define GST_IOS_PLUGINS_CODECS_RESTRICTED
|
||||||
|
@ -22,4 +25,6 @@
|
||||||
|
|
||||||
void gst_ios_init ();
|
void gst_ios_init ();
|
||||||
|
|
||||||
|
G_END_DECLS
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -496,9 +496,10 @@ GST_PLUGIN_STATIC_DECLARE(sdp);
|
||||||
void
|
void
|
||||||
gst_ios_init (void)
|
gst_ios_init (void)
|
||||||
{
|
{
|
||||||
gst_init (NULL, NULL);
|
GstPluginFeature *plugin;
|
||||||
gst_debug_set_colored(FALSE);
|
GstRegistry *reg;
|
||||||
gst_debug_set_default_threshold(GST_LEVEL_WARNING);
|
|
||||||
|
gst_init (NULL, NULL);
|
||||||
|
|
||||||
#if defined(GST_IOS_PLUGIN_COREELEMENTS) || defined(GST_IOS_PLUGINS_CORE)
|
#if defined(GST_IOS_PLUGIN_COREELEMENTS) || defined(GST_IOS_PLUGINS_CORE)
|
||||||
GST_PLUGIN_STATIC_REGISTER(coreelements);
|
GST_PLUGIN_STATIC_REGISTER(coreelements);
|
||||||
|
@ -992,4 +993,14 @@ gst_ios_init (void)
|
||||||
#if defined(GST_IOS_PLUGIN_SDP) || defined(GST_IOS_PLUGINS_NET)
|
#if defined(GST_IOS_PLUGIN_SDP) || defined(GST_IOS_PLUGINS_NET)
|
||||||
GST_PLUGIN_STATIC_REGISTER(sdp);
|
GST_PLUGIN_STATIC_REGISTER(sdp);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Lower the ranks of filesrc and giosrc so iosavassetsrc is
|
||||||
|
* tried first in gst_element_make_from_uri() for file:// */
|
||||||
|
reg = gst_registry_get_default();
|
||||||
|
plugin = gst_registry_lookup_feature(reg, "filesrc");
|
||||||
|
if (plugin)
|
||||||
|
gst_plugin_feature_set_rank(plugin, GST_RANK_SECONDARY);
|
||||||
|
plugin = gst_registry_lookup_feature(reg, "giosrc");
|
||||||
|
if (plugin)
|
||||||
|
gst_plugin_feature_set_rank(plugin, GST_RANK_SECONDARY-1);
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,9 +3,12 @@
|
||||||
|
|
||||||
#include <gst/gst.h>
|
#include <gst/gst.h>
|
||||||
|
|
||||||
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
/* Uncomment each line to enable the plugin categories that your application needs.
|
/* Uncomment each line to enable the plugin categories that your application needs.
|
||||||
* You can also enable individual plugins. See gst_ios_init.c to see their names
|
* You can also enable individual plugins. See gst_ios_init.c to see their names
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define GST_IOS_PLUGINS_CORE
|
#define GST_IOS_PLUGINS_CORE
|
||||||
//#define GST_IOS_PLUGINS_CAPTURE
|
//#define GST_IOS_PLUGINS_CAPTURE
|
||||||
//#define GST_IOS_PLUGINS_CODECS_RESTRICTED
|
//#define GST_IOS_PLUGINS_CODECS_RESTRICTED
|
||||||
|
@ -22,4 +25,6 @@
|
||||||
|
|
||||||
void gst_ios_init ();
|
void gst_ios_init ();
|
||||||
|
|
||||||
|
G_END_DECLS
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -496,9 +496,10 @@ GST_PLUGIN_STATIC_DECLARE(sdp);
|
||||||
void
|
void
|
||||||
gst_ios_init (void)
|
gst_ios_init (void)
|
||||||
{
|
{
|
||||||
gst_init (NULL, NULL);
|
GstPluginFeature *plugin;
|
||||||
gst_debug_set_colored(FALSE);
|
GstRegistry *reg;
|
||||||
gst_debug_set_default_threshold(GST_LEVEL_WARNING);
|
|
||||||
|
gst_init (NULL, NULL);
|
||||||
|
|
||||||
#if defined(GST_IOS_PLUGIN_COREELEMENTS) || defined(GST_IOS_PLUGINS_CORE)
|
#if defined(GST_IOS_PLUGIN_COREELEMENTS) || defined(GST_IOS_PLUGINS_CORE)
|
||||||
GST_PLUGIN_STATIC_REGISTER(coreelements);
|
GST_PLUGIN_STATIC_REGISTER(coreelements);
|
||||||
|
@ -992,4 +993,14 @@ gst_ios_init (void)
|
||||||
#if defined(GST_IOS_PLUGIN_SDP) || defined(GST_IOS_PLUGINS_NET)
|
#if defined(GST_IOS_PLUGIN_SDP) || defined(GST_IOS_PLUGINS_NET)
|
||||||
GST_PLUGIN_STATIC_REGISTER(sdp);
|
GST_PLUGIN_STATIC_REGISTER(sdp);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Lower the ranks of filesrc and giosrc so iosavassetsrc is
|
||||||
|
* tried first in gst_element_make_from_uri() for file:// */
|
||||||
|
reg = gst_registry_get_default();
|
||||||
|
plugin = gst_registry_lookup_feature(reg, "filesrc");
|
||||||
|
if (plugin)
|
||||||
|
gst_plugin_feature_set_rank(plugin, GST_RANK_SECONDARY);
|
||||||
|
plugin = gst_registry_lookup_feature(reg, "giosrc");
|
||||||
|
if (plugin)
|
||||||
|
gst_plugin_feature_set_rank(plugin, GST_RANK_SECONDARY-1);
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,9 +3,12 @@
|
||||||
|
|
||||||
#include <gst/gst.h>
|
#include <gst/gst.h>
|
||||||
|
|
||||||
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
/* Uncomment each line to enable the plugin categories that your application needs.
|
/* Uncomment each line to enable the plugin categories that your application needs.
|
||||||
* You can also enable individual plugins. See gst_ios_init.c to see their names
|
* You can also enable individual plugins. See gst_ios_init.c to see their names
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define GST_IOS_PLUGINS_CORE
|
#define GST_IOS_PLUGINS_CORE
|
||||||
//#define GST_IOS_PLUGINS_CAPTURE
|
//#define GST_IOS_PLUGINS_CAPTURE
|
||||||
//#define GST_IOS_PLUGINS_CODECS_RESTRICTED
|
//#define GST_IOS_PLUGINS_CODECS_RESTRICTED
|
||||||
|
@ -22,4 +25,6 @@
|
||||||
|
|
||||||
void gst_ios_init ();
|
void gst_ios_init ();
|
||||||
|
|
||||||
|
G_END_DECLS
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -496,9 +496,10 @@ GST_PLUGIN_STATIC_DECLARE(sdp);
|
||||||
void
|
void
|
||||||
gst_ios_init (void)
|
gst_ios_init (void)
|
||||||
{
|
{
|
||||||
gst_init (NULL, NULL);
|
GstPluginFeature *plugin;
|
||||||
gst_debug_set_colored(FALSE);
|
GstRegistry *reg;
|
||||||
gst_debug_set_default_threshold(GST_LEVEL_WARNING);
|
|
||||||
|
gst_init (NULL, NULL);
|
||||||
|
|
||||||
#if defined(GST_IOS_PLUGIN_COREELEMENTS) || defined(GST_IOS_PLUGINS_CORE)
|
#if defined(GST_IOS_PLUGIN_COREELEMENTS) || defined(GST_IOS_PLUGINS_CORE)
|
||||||
GST_PLUGIN_STATIC_REGISTER(coreelements);
|
GST_PLUGIN_STATIC_REGISTER(coreelements);
|
||||||
|
@ -992,4 +993,14 @@ gst_ios_init (void)
|
||||||
#if defined(GST_IOS_PLUGIN_SDP) || defined(GST_IOS_PLUGINS_NET)
|
#if defined(GST_IOS_PLUGIN_SDP) || defined(GST_IOS_PLUGINS_NET)
|
||||||
GST_PLUGIN_STATIC_REGISTER(sdp);
|
GST_PLUGIN_STATIC_REGISTER(sdp);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Lower the ranks of filesrc and giosrc so iosavassetsrc is
|
||||||
|
* tried first in gst_element_make_from_uri() for file:// */
|
||||||
|
reg = gst_registry_get_default();
|
||||||
|
plugin = gst_registry_lookup_feature(reg, "filesrc");
|
||||||
|
if (plugin)
|
||||||
|
gst_plugin_feature_set_rank(plugin, GST_RANK_SECONDARY);
|
||||||
|
plugin = gst_registry_lookup_feature(reg, "giosrc");
|
||||||
|
if (plugin)
|
||||||
|
gst_plugin_feature_set_rank(plugin, GST_RANK_SECONDARY-1);
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,9 +3,12 @@
|
||||||
|
|
||||||
#include <gst/gst.h>
|
#include <gst/gst.h>
|
||||||
|
|
||||||
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
/* Uncomment each line to enable the plugin categories that your application needs.
|
/* Uncomment each line to enable the plugin categories that your application needs.
|
||||||
* You can also enable individual plugins. See gst_ios_init.c to see their names
|
* You can also enable individual plugins. See gst_ios_init.c to see their names
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define GST_IOS_PLUGINS_CORE
|
#define GST_IOS_PLUGINS_CORE
|
||||||
//#define GST_IOS_PLUGINS_CAPTURE
|
//#define GST_IOS_PLUGINS_CAPTURE
|
||||||
//#define GST_IOS_PLUGINS_CODECS_RESTRICTED
|
//#define GST_IOS_PLUGINS_CODECS_RESTRICTED
|
||||||
|
@ -22,4 +25,6 @@
|
||||||
|
|
||||||
void gst_ios_init ();
|
void gst_ios_init ();
|
||||||
|
|
||||||
|
G_END_DECLS
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue