mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-24 08:08:22 +00:00
gst-libs/gst/riff/riff-media.c: Camtasia caps apparently need a bpp field (#398875).
Original commit message from CVS: * gst-libs/gst/riff/riff-media.c: (gst_riff_create_video_caps): Camtasia caps apparently need a bpp field (#398875).
This commit is contained in:
parent
acf3bcdfbb
commit
439b3193bd
2 changed files with 16 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2007-01-22 Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
|
||||||
|
* gst-libs/gst/riff/riff-media.c: (gst_riff_create_video_caps):
|
||||||
|
Camtasia caps apparently need a bpp field (#398875).
|
||||||
|
|
||||||
2007-01-19 Tim-Philipp Müller <tim at centricular dot net>
|
2007-01-19 Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
|
||||||
* gst/playback/gstplaybasebin.c: (setup_subtitle),
|
* gst/playback/gstplaybasebin.c: (setup_subtitle),
|
||||||
|
|
|
@ -521,11 +521,20 @@ gst_riff_create_video_caps (guint32 codec_fcc,
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case GST_MAKE_FOURCC ('T', 'S', 'C', 'C'):
|
case GST_MAKE_FOURCC ('T', 'S', 'C', 'C'):
|
||||||
case GST_MAKE_FOURCC ('t', 's', 'c', 'c'):
|
case GST_MAKE_FOURCC ('t', 's', 'c', 'c'):{
|
||||||
|
if (strf) {
|
||||||
|
gint bpp = (strf->bit_cnt != 0) ? (gint) strf->bit_cnt : 24;
|
||||||
|
|
||||||
|
caps = gst_caps_new_simple ("video/x-camtasia", "bpp", G_TYPE_INT,
|
||||||
|
bpp, NULL);
|
||||||
|
} else {
|
||||||
|
/* template caps */
|
||||||
caps = gst_caps_new_simple ("video/x-camtasia", NULL);
|
caps = gst_caps_new_simple ("video/x-camtasia", NULL);
|
||||||
|
}
|
||||||
if (codec_name)
|
if (codec_name)
|
||||||
*codec_name = g_strdup ("TechSmith Camtasia");
|
*codec_name = g_strdup ("TechSmith Camtasia");
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
case GST_MAKE_FOURCC ('V', 'C', 'R', '1'):
|
case GST_MAKE_FOURCC ('V', 'C', 'R', '1'):
|
||||||
caps = gst_caps_new_simple ("video/x-ati-vcr",
|
caps = gst_caps_new_simple ("video/x-ati-vcr",
|
||||||
|
|
Loading…
Reference in a new issue