From e602845c35f307842d58b621e4201841fb7ae23d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Mon, 29 Jun 2009 22:12:20 +0000 Subject: [PATCH] the first index is zero, not one git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31320 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- .../media/media-add-ons/firewire_dv/FireWireDVAddOn.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/add-ons/media/media-add-ons/firewire_dv/FireWireDVAddOn.cpp b/src/add-ons/media/media-add-ons/firewire_dv/FireWireDVAddOn.cpp index 313e154386..936d828618 100644 --- a/src/add-ons/media/media-add-ons/firewire_dv/FireWireDVAddOn.cpp +++ b/src/add-ons/media/media-add-ons/firewire_dv/FireWireDVAddOn.cpp @@ -166,8 +166,8 @@ FireWireDVAddOn::AddDevice(FireWireCard* card, const char* path) // setup supported formats (the lazy way) memset(dev->in_formats, 0, sizeof(dev->in_formats)); memset(dev->out_formats, 0, sizeof(dev->out_formats)); - dev->in_formats[1].type = B_MEDIA_ENCODED_VIDEO; - dev->out_formats[1].type = B_MEDIA_ENCODED_VIDEO; + dev->in_formats[0].type = B_MEDIA_ENCODED_VIDEO; + dev->out_formats[0].type = B_MEDIA_ENCODED_VIDEO; // setup flavor info dev->flavor.name = dev->name;