textoverlay: don't abort if we don't know how to paint shaded background for a format
authorTim-Philipp Müller <tim@centricular.net>
Tue, 6 Nov 2012 23:38:13 +0000 (23:38 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Tue, 6 Nov 2012 23:44:01 +0000 (23:44 +0000)
It's not a very nice thing to do.

https://bugzilla.gnome.org/show_bug.cgi?id=687666

ext/pango/gstbasetextoverlay.c

index d106dc2..e339231 100644 (file)
@@ -1684,7 +1684,9 @@ gst_base_text_overlay_push_frame (GstBaseTextOverlay * overlay,
             ypos, ypos + overlay->image_height);
         break;
       default:
-        g_assert_not_reached ();
+        GST_FIXME_OBJECT (overlay, "implement background shading for format %s",
+            gst_video_format_to_string (GST_VIDEO_FRAME_FORMAT (&frame)));
+        break;
     }
   }