Revert "video: specify/restrict usage of GST_VIDEO_FORMAT_ENCODED"
authorSebastian Dröge <sebastian@centricular.com>
Tue, 17 Dec 2013 16:23:19 +0000 (17:23 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 17 Dec 2013 16:23:19 +0000 (17:23 +0100)
This reverts commit 5fcdabd907ca45595b64131bbae0ea963e259a7c.

Instead of making it impossible to use the ENCODED format we should
just document that it must not be used for capsfeature-less caps.

Also this commit broke API/ABI.

gst-libs/gst/video/video-format.h
gst-libs/gst/video/video-info.c

index 9ea803f416e947cb17fc29bdb719ded598bd468d..f60c380b03f81da887083a0b815b10e8016c70a4 100644 (file)
@@ -29,7 +29,7 @@ G_BEGIN_DECLS
 /**
  * GstVideoFormat:
  * @GST_VIDEO_FORMAT_UNKNOWN: Unknown or unset video format id
- * @GST_VIDEO_FORMAT_ENCODED: Encoded video format (NOTE: not for use in "video/x-raw")
+ * @GST_VIDEO_FORMAT_ENCODED: Encoded video format
  * @GST_VIDEO_FORMAT_I420: planar 4:2:0 YUV
  * @GST_VIDEO_FORMAT_YV12: planar 4:2:0 YVU (like I420 but UV planes swapped)
  * @GST_VIDEO_FORMAT_YUY2: packed 4:2:2 YUV (Y0-U0-Y1-V0 Y2-U2-Y3-V2 Y4 ...)
index 36f140870ee68213e5e08cb23cfb42ca769aa661..6db2f664babf415fb7227f19e4a02382bead340d 100644 (file)
@@ -317,7 +317,6 @@ gst_video_info_to_caps (GstVideoInfo * info)
   g_return_val_if_fail (info != NULL, NULL);
   g_return_val_if_fail (info->finfo != NULL, NULL);
   g_return_val_if_fail (info->finfo->format != GST_VIDEO_FORMAT_UNKNOWN, NULL);
-  g_return_val_if_fail (info->finfo->format != GST_VIDEO_FORMAT_ENCODED, NULL);
 
   format = gst_video_format_to_string (info->finfo->format);
   g_return_val_if_fail (format != NULL, NULL);