[Pkg-gstreamer-commits] [gstreamer-vaapi] 23/176: vaapiencode: fix plugin description and debug name.

Vincent Cheng vcheng at moszumanska.debian.org
Tue Jun 3 08:09:24 UTC 2014


This is an automated email from the git hooks/post-receive script.

vcheng pushed a commit to branch upstream
in repository gstreamer-vaapi.

commit 1a4b3c3b220fc2f2de0d898bca93562c4fad46db
Author: Gwenole Beauchesne <gwenole.beauchesne at intel.com>
Date:   Thu Nov 28 10:54:36 2013 +0100

    vaapiencode: fix plugin description and debug name.
    
    Align the plug-in debug category to its actual name. i.e. enable debug
    logs through vaapiencode_<CODEC> where <CODEC> is mpeg2, h264, etc. Fix
    the plug-in element description to make it more consistent with other
    VA-API plug-ins.
---
 gst/vaapi/gstvaapiencode_h264.c  | 9 ++++++---
 gst/vaapi/gstvaapiencode_mpeg2.c | 9 ++++++---
 2 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/gst/vaapi/gstvaapiencode_h264.c b/gst/vaapi/gstvaapiencode_h264.c
index 1c108ab..7fdd95c 100644
--- a/gst/vaapi/gstvaapiencode_h264.c
+++ b/gst/vaapi/gstvaapiencode_h264.c
@@ -30,6 +30,9 @@
 #include "gstvaapivideomemory.h"
 #endif
 
+#define GST_PLUGIN_NAME "vaapiencode_h264"
+#define GST_PLUGIN_DESC "A VA-API based H.264 video encoder"
+
 GST_DEBUG_CATEGORY_STATIC (gst_vaapi_h264_encode_debug);
 #define GST_CAT_DEFAULT gst_vaapi_h264_encode_debug
 
@@ -313,7 +316,7 @@ gst_vaapiencode_h264_class_init (GstVaapiEncodeH264Class * klass)
   GstVaapiEncodeClass *const encode_class = GST_VAAPIENCODE_CLASS (klass);
 
   GST_DEBUG_CATEGORY_INIT (gst_vaapi_h264_encode_debug,
-      "vaapih264encode", 0, "vaapih264encode element");
+      GST_PLUGIN_NAME, 0, GST_PLUGIN_DESC);
 
   object_class->finalize = gst_vaapiencode_h264_finalize;
   object_class->set_property = gst_vaapiencode_h264_set_property;
@@ -323,9 +326,9 @@ gst_vaapiencode_h264_class_init (GstVaapiEncodeH264Class * klass)
   encode_class->allocate_buffer = gst_vaapiencode_h264_alloc_buffer;
 
   gst_element_class_set_static_metadata (element_class,
-      "VA-API h264 encoder",
+      "VA-API H.264 encoder",
       "Codec/Encoder/Video",
-      "A VA-API based video encoder", "Wind Yuan <feng.yuan at intel.com>");
+      GST_PLUGIN_DESC, "Wind Yuan <feng.yuan at intel.com>");
 
   /* sink pad */
   gst_element_class_add_pad_template (element_class,
diff --git a/gst/vaapi/gstvaapiencode_mpeg2.c b/gst/vaapi/gstvaapiencode_mpeg2.c
index cfd6581..aad93de 100644
--- a/gst/vaapi/gstvaapiencode_mpeg2.c
+++ b/gst/vaapi/gstvaapiencode_mpeg2.c
@@ -30,6 +30,9 @@
 #include "gstvaapivideomemory.h"
 #endif
 
+#define GST_PLUGIN_NAME "vaapiencode_mpeg2"
+#define GST_PLUGIN_DESC "A VA-API based MPEG-2 video encoder"
+
 GST_DEBUG_CATEGORY_STATIC (gst_vaapi_mpeg2_encode_debug);
 #define GST_CAT_DEFAULT gst_vaapi_mpeg2_encode_debug
 
@@ -192,7 +195,7 @@ gst_vaapiencode_mpeg2_class_init (GstVaapiEncodeMpeg2Class * klass)
   GstVaapiEncodeClass *const encode_class = GST_VAAPIENCODE_CLASS (klass);
 
   GST_DEBUG_CATEGORY_INIT (gst_vaapi_mpeg2_encode_debug,
-      "vaapimpeg2encode", 0, "vaapimpeg2encode element");
+      GST_PLUGIN_NAME, 0, GST_PLUGIN_DESC);
 
   object_class->finalize = gst_vaapiencode_mpeg2_finalize;
   object_class->set_property = gst_vaapiencode_mpeg2_set_property;
@@ -201,9 +204,9 @@ gst_vaapiencode_mpeg2_class_init (GstVaapiEncodeMpeg2Class * klass)
   encode_class->create_encoder = gst_vaapiencode_mpeg2_create_encoder;
 
   gst_element_class_set_static_metadata (element_class,
-      "VA-API mpeg2 encoder",
+      "VA-API MPEG-2 encoder",
       "Codec/Encoder/Video",
-      "A VA-API based video encoder", "Guangxin Xu <guangxin.xu at intel.com>");
+      GST_PLUGIN_DESC, "Guangxin Xu <guangxin.xu at intel.com>");
 
   /* sink pad */
   gst_element_class_add_pad_template (element_class,

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gstreamer/gstreamer-vaapi.git



More information about the Pkg-gstreamer-commits mailing list