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

git pushed a commit to branch tests-bind1st-byebye
in repository efl.

View the commit online.

commit fd6b5003a7a17f476b802959b2a46316f811e639
Author: Carsten Haitzler <[email protected]>
AuthorDate: Wed Feb 11 17:34:33 2026 +0000

    emotion - gst - sink - be fuzzy for sink match to handle moew
    
    not 100% right but means no blank/non-working video
---
 src/modules/emotion/gstreamer1/emotion_sink.c | 40 ++++++++++++++++-----------
 1 file changed, 24 insertions(+), 16 deletions(-)

diff --git a/src/modules/emotion/gstreamer1/emotion_sink.c b/src/modules/emotion/gstreamer1/emotion_sink.c
index 691d32cd4a..cc8bae9a92 100644
--- a/src/modules/emotion/gstreamer1/emotion_sink.c
+++ b/src/modules/emotion/gstreamer1/emotion_sink.c
@@ -183,7 +183,7 @@ gboolean emotion_video_sink_set_caps(GstBaseSink *bsink, GstCaps *caps)
    EmotionVideoSink* sink;
    EmotionVideoSinkPrivate* priv;
    GstVideoInfo info;
-   unsigned int i;
+   unsigned int i, j;
 
    sink = EMOTION_VIDEO_SINK(bsink);
    priv = sink->priv;
@@ -197,22 +197,30 @@ gboolean emotion_video_sink_set_caps(GstBaseSink *bsink, GstCaps *caps)
    priv->info = info;
    priv->eheight = info.height;
 
-   for (i = 0; colorspace_format_conversion[i].name; i++)
-     {
-        if ((info.finfo->format == colorspace_format_conversion[i].format) &&
-            ((colorspace_format_conversion[i].colormatrix == GST_VIDEO_COLOR_MATRIX_UNKNOWN) ||
-             (colorspace_format_conversion[i].colormatrix == info.colorimetry.matrix)))
-          {
-             DBG("Found '%s'", colorspace_format_conversion[i].name);
-             priv->eformat = colorspace_format_conversion[i].eformat;
-             priv->func = colorspace_format_conversion[i].func;
-             if (colorspace_format_conversion[i].force_height)
-               {
+   for (j = 0; j < 2; j++)
+    { // try match colormatrix then try skip it just to work at all...
+      Eina_Bool match_colormatrix;
+
+      match_colormatrix = EINA_FALSE;
+      if (j == 0) match_colormatrix = EINA_TRUE;
+      for (i = 0; colorspace_format_conversion[i].name; i++)
+        {
+          if ((info.finfo->format == colorspace_format_conversion[i].format)
+              && ((!match_colormatrix) ||
+                  ((colorspace_format_conversion[i].colormatrix == GST_VIDEO_COLOR_MATRIX_UNKNOWN) ||
+                   (colorspace_format_conversion[i].colormatrix == info.colorimetry.matrix))))
+            {
+              DBG("Found '%s'", colorspace_format_conversion[i].name);
+              priv->eformat = colorspace_format_conversion[i].eformat;
+              priv->func = colorspace_format_conversion[i].func;
+              if (colorspace_format_conversion[i].force_height)
+                {
                   priv->eheight = (priv->eheight >> 1) << 1;
-               }
-             return TRUE;
-          }
-       }
+                }
+              return TRUE;
+            }
+        }
+    }
 
    ERR("unsupported : %s\n", gst_video_format_to_string(info.finfo->format));
    return FALSE;

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to