[Pkg-gstreamer-commits] [gstreamer-vaapi] 88/176: utils: h264: don't use fatal asserts.

Vincent Cheng vcheng at moszumanska.debian.org
Tue Jun 3 08:09:30 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 4a650e8e624a87c5808462d34d18f741eea1a5f9
Author: Gwenole Beauchesne <gwenole.beauchesne at intel.com>
Date:   Fri Jan 10 19:49:52 2014 +0100

    utils: h264: don't use fatal asserts.
    
    Replace g_assert() with a g_debug() so that to not make the program
    abort when an unsupported value is supplied.
---
 gst-libs/gst/vaapi/gstvaapiutils_h264.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/gst-libs/gst/vaapi/gstvaapiutils_h264.c b/gst-libs/gst/vaapi/gstvaapiutils_h264.c
index 20cc474..8c39437 100644
--- a/gst-libs/gst/vaapi/gstvaapiutils_h264.c
+++ b/gst-libs/gst/vaapi/gstvaapiutils_h264.c
@@ -168,7 +168,7 @@ gst_vaapi_utils_h264_get_profile (guint8 profile_idc)
       profile = GST_VAAPI_PROFILE_H264_STEREO_HIGH;
       break;
     default:
-      g_assert (0 && "unsupported profile_idc value");
+      g_debug ("unsupported profile_idc value");
       profile = GST_VAAPI_PROFILE_UNKNOWN;
       break;
   }
@@ -217,7 +217,7 @@ gst_vaapi_utils_h264_get_profile_idc (GstVaapiProfile profile)
       profile_idc = GST_H264_PROFILE_STEREO_HIGH;
       break;
     default:
-      g_assert (0 && "unsupported GstVaapiProfile value");
+      g_debug ("unsupported GstVaapiProfile value");
       profile_idc = 0;
       break;
   }
@@ -257,7 +257,7 @@ gst_vaapi_utils_h264_get_level (guint8 level_idc)
     if (llp->level_idc == level_idc)
       return llp->level;
   }
-  g_assert (0 && "unsupported level_idc value");
+  g_debug ("unsupported level_idc value");
   return (GstVaapiLevelH264) 0;
 }
 
@@ -354,7 +354,7 @@ gst_vaapi_utils_h264_get_chroma_type (guint chroma_format_idc)
       chroma_type = GST_VAAPI_CHROMA_TYPE_YUV444;
       break;
     default:
-      g_assert (0 && "unsupported chroma_format_idc value");
+      g_debug ("unsupported chroma_format_idc value");
       chroma_type = (GstVaapiChromaType) 0;
       break;
   }
@@ -381,7 +381,7 @@ gst_vaapi_utils_h264_get_chroma_format_idc (GstVaapiChromaType chroma_type)
       chroma_format_idc = 3;
       break;
     default:
-      g_assert (0 && "unsupported GstVaapiChromaType value");
+      g_debug ("unsupported GstVaapiChromaType value");
       chroma_format_idc = 1;
       break;
   }

-- 
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