parent
b3c15a340a
commit
6ce1ff2188
@ -30,6 +30,11 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
/* FIXME: remove once we depend on GLib >= 2.22 */
|
||||||
|
#if !GLIB_CHECK_VERSION (2, 22, 0)
|
||||||
|
#define g_mapped_file_unref g_mapped_file_free
|
||||||
|
#endif
|
||||||
|
|
||||||
GST_DEBUG_CATEGORY (appsrc_playbin_debug);
|
GST_DEBUG_CATEGORY (appsrc_playbin_debug);
|
||||||
#define GST_CAT_DEFAULT appsrc_playbin_debug
|
#define GST_CAT_DEFAULT appsrc_playbin_debug
|
||||||
|
|
||||||
@ -215,7 +220,7 @@ main (int argc, char *argv[])
|
|||||||
gst_element_set_state (app->playbin, GST_STATE_NULL);
|
gst_element_set_state (app->playbin, GST_STATE_NULL);
|
||||||
|
|
||||||
/* free the file */
|
/* free the file */
|
||||||
g_mapped_file_free (app->file);
|
g_mapped_file_unref (app->file);
|
||||||
|
|
||||||
gst_object_unref (bus);
|
gst_object_unref (bus);
|
||||||
g_main_loop_unref (app->loop);
|
g_main_loop_unref (app->loop);
|
||||||
|
@ -30,6 +30,11 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
/* FIXME: remove once we depend on GLib >= 2.22 */
|
||||||
|
#if !GLIB_CHECK_VERSION (2, 22, 0)
|
||||||
|
#define g_mapped_file_unref g_mapped_file_free
|
||||||
|
#endif
|
||||||
|
|
||||||
GST_DEBUG_CATEGORY (appsrc_playbin_debug);
|
GST_DEBUG_CATEGORY (appsrc_playbin_debug);
|
||||||
#define GST_CAT_DEFAULT appsrc_playbin_debug
|
#define GST_CAT_DEFAULT appsrc_playbin_debug
|
||||||
|
|
||||||
@ -220,7 +225,7 @@ main (int argc, char *argv[])
|
|||||||
gst_element_set_state (app->playbin, GST_STATE_NULL);
|
gst_element_set_state (app->playbin, GST_STATE_NULL);
|
||||||
|
|
||||||
/* free the file */
|
/* free the file */
|
||||||
g_mapped_file_free (app->file);
|
g_mapped_file_unref (app->file);
|
||||||
|
|
||||||
gst_object_unref (bus);
|
gst_object_unref (bus);
|
||||||
g_main_loop_unref (app->loop);
|
g_main_loop_unref (app->loop);
|
||||||
|
@ -30,6 +30,11 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
/* FIXME: remove once we depend on GLib >= 2.22 */
|
||||||
|
#if !GLIB_CHECK_VERSION (2, 22, 0)
|
||||||
|
#define g_mapped_file_unref g_mapped_file_free
|
||||||
|
#endif
|
||||||
|
|
||||||
GST_DEBUG_CATEGORY (appsrc_playbin_debug);
|
GST_DEBUG_CATEGORY (appsrc_playbin_debug);
|
||||||
#define GST_CAT_DEFAULT appsrc_playbin_debug
|
#define GST_CAT_DEFAULT appsrc_playbin_debug
|
||||||
|
|
||||||
@ -240,7 +245,7 @@ main (int argc, char *argv[])
|
|||||||
gst_element_set_state (app->playbin, GST_STATE_NULL);
|
gst_element_set_state (app->playbin, GST_STATE_NULL);
|
||||||
|
|
||||||
/* free the file */
|
/* free the file */
|
||||||
g_mapped_file_free (app->file);
|
g_mapped_file_unref (app->file);
|
||||||
|
|
||||||
gst_object_unref (bus);
|
gst_object_unref (bus);
|
||||||
g_main_loop_unref (app->loop);
|
g_main_loop_unref (app->loop);
|
||||||
|
@ -30,6 +30,11 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
/* FIXME: remove once we depend on GLib >= 2.22 */
|
||||||
|
#if !GLIB_CHECK_VERSION (2, 22, 0)
|
||||||
|
#define g_mapped_file_unref g_mapped_file_free
|
||||||
|
#endif
|
||||||
|
|
||||||
GST_DEBUG_CATEGORY (appsrc_playbin_debug);
|
GST_DEBUG_CATEGORY (appsrc_playbin_debug);
|
||||||
#define GST_CAT_DEFAULT appsrc_playbin_debug
|
#define GST_CAT_DEFAULT appsrc_playbin_debug
|
||||||
|
|
||||||
@ -210,7 +215,7 @@ main (int argc, char *argv[])
|
|||||||
gst_element_set_state (app->playbin, GST_STATE_NULL);
|
gst_element_set_state (app->playbin, GST_STATE_NULL);
|
||||||
|
|
||||||
/* free the file */
|
/* free the file */
|
||||||
g_mapped_file_free (app->file);
|
g_mapped_file_unref (app->file);
|
||||||
|
|
||||||
gst_object_unref (bus);
|
gst_object_unref (bus);
|
||||||
g_main_loop_unref (app->loop);
|
g_main_loop_unref (app->loop);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user