mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 08:41:07 +00:00
sys/v4l/gstv4lsrc.c: Check if the caps have a fourcc field. Fixes crash for gst-launch-0.9 v4lsrc name=source autopr...
Original commit message from CVS: * sys/v4l/gstv4lsrc.c: (gst_v4lsrc_fixate): Check if the caps have a fourcc field. Fixes crash for gst-launch-0.9 v4lsrc name=source autoprobe=false autoprobe-fps=false copy-mode=1 device=/dev/video0 ! ffmpegcolorspace ! "video/x-raw-yuv, format=(fourcc)I420" ! xvimagesink
This commit is contained in:
parent
19a54b1966
commit
7887553268
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2005-11-10 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||||
|
|
||||||
|
* sys/v4l/gstv4lsrc.c: (gst_v4lsrc_fixate):
|
||||||
|
Check if the caps have a fourcc field. Fixes crash for
|
||||||
|
gst-launch-0.9 v4lsrc name=source autoprobe=false autoprobe-fps=false copy-mode=1 device=/dev/video0 ! ffmpegcolorspace !
|
||||||
|
"video/x-raw-yuv, format=(fourcc)I420" ! xvimagesink
|
||||||
|
|
||||||
2005-11-10 Tim-Philipp Müller <tim at centricular dot net>
|
2005-11-10 Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
|
||||||
* gst/sine/gstsinesrc.c: (gst_sinesrc_class_init),
|
* gst/sine/gstsinesrc.c: (gst_sinesrc_class_init),
|
||||||
|
|
|
@ -242,7 +242,7 @@ gst_v4lsrc_fixate (GstPad * pad, GstCaps * caps)
|
||||||
7.5);
|
7.5);
|
||||||
|
|
||||||
v = gst_structure_get_value (structure, "format");
|
v = gst_structure_get_value (structure, "format");
|
||||||
if (G_VALUE_TYPE (v) != GST_TYPE_FOURCC) {
|
if (v && G_VALUE_TYPE (v) != GST_TYPE_FOURCC) {
|
||||||
guint32 fourcc;
|
guint32 fourcc;
|
||||||
|
|
||||||
g_return_if_fail (G_VALUE_TYPE (v) == GST_TYPE_LIST);
|
g_return_if_fail (G_VALUE_TYPE (v) == GST_TYPE_LIST);
|
||||||
|
|
Loading…
Reference in a new issue