Skip to content

Commit

Permalink
xvimage: Fix symbol redefine build error
Browse files Browse the repository at this point in the history
  • Loading branch information
seungha-yang authored and tp-m committed Jul 19, 2018
1 parent 63cf6b4 commit 83c7dd2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 0 additions & 3 deletions sys/xvimage/xvimage.c
Expand Up @@ -26,7 +26,6 @@
GST_DEBUG_CATEGORY (gst_debug_xv_context);
GST_DEBUG_CATEGORY (gst_debug_xv_image_pool);
GST_DEBUG_CATEGORY (gst_debug_xv_image_sink);
GST_DEBUG_CATEGORY (CAT_PERFORMANCE);

static gboolean
plugin_init (GstPlugin * plugin)
Expand All @@ -42,8 +41,6 @@ plugin_init (GstPlugin * plugin)
GST_DEBUG_CATEGORY_INIT (gst_debug_xv_image_pool, "xvimagepool", 0,
"xvimagepool object");

GST_DEBUG_CATEGORY_GET (CAT_PERFORMANCE, "GST_PERFORMANCE");

return TRUE;
}

Expand Down
6 changes: 4 additions & 2 deletions sys/xvimage/xvimagesink.c
Expand Up @@ -133,8 +133,8 @@
#include <X11/XKBlib.h>

GST_DEBUG_CATEGORY_EXTERN (gst_debug_xv_image_sink);
GST_DEBUG_CATEGORY_EXTERN (CAT_PERFORMANCE);
#define GST_CAT_DEFAULT gst_debug_xv_image_sink
GST_DEBUG_CATEGORY_STATIC (GST_CAT_PERFORMANCE);

typedef struct
{
Expand Down Expand Up @@ -963,7 +963,7 @@ gst_xv_image_sink_show_frame (GstVideoSink * vsink, GstBuffer * buf)
if (res != GST_FLOW_OK)
goto no_buffer;

GST_CAT_LOG_OBJECT (CAT_PERFORMANCE, xvimagesink,
GST_CAT_LOG_OBJECT (GST_CAT_PERFORMANCE, xvimagesink,
"slow copy buffer %p into bufferpool buffer %p", buf, to_put);

if (!gst_video_frame_map (&src, &xvimagesink->info, buf, GST_MAP_READ))
Expand Down Expand Up @@ -2045,4 +2045,6 @@ gst_xv_image_sink_class_init (GstXvImageSinkClass * klass)

videosink_class->show_frame =
GST_DEBUG_FUNCPTR (gst_xv_image_sink_show_frame);

GST_DEBUG_CATEGORY_GET (GST_CAT_PERFORMANCE, "GST_PERFORMANCE");
}

0 comments on commit 83c7dd2

Please sign in to comment.