gst-fsl-plugin: fix patch that sets defaults for vssconfig
Without the fix if we only configure *one* display in the vssconfig file (i.e. we set just one entry in that file) the patch was discarding that configuration and overwriting the configuration with dual display defaults. But configuring a single display in vssconfig should be doable, so fix the patch to allow that. Signed-off-by: Javier Viguera <javier.viguera@digi.com>
This commit is contained in:
parent
6fcd94fb98
commit
dab4595df7
|
|
@ -3,21 +3,22 @@ Date: Mon, 9 Apr 2012 18:20:01 +0200
|
|||
Subject: [PATCH] mfw_isink: Set defaults if no vssconfig found.
|
||||
|
||||
Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
|
||||
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
|
||||
---
|
||||
libs/vss/vss_common.c | 16 ++++++++++++++++
|
||||
1 file changed, 16 insertions(+)
|
||||
|
||||
diff --git a/libs/vss/vss_common.c b/libs/vss/vss_common.c
|
||||
index 2044051..52aa508 100755
|
||||
index 2044051..a8e8e57 100755
|
||||
--- a/libs/vss/vss_common.c
|
||||
+++ b/libs/vss/vss_common.c
|
||||
@@ -390,6 +390,22 @@ next:
|
||||
cs = cs->next;
|
||||
}
|
||||
|
||||
+ if( cs == NULL ){
|
||||
+ for (i=0;i<VD_MAX;i++){
|
||||
+ VideoDevice * vd;
|
||||
+ if (i == 0) {
|
||||
+ for (i = 0; i < VD_MAX; i++) {
|
||||
+ VideoDevice *vd;
|
||||
+
|
||||
+ VS_MESSAGE("No vssconfig, setting defaults.\n");
|
||||
+ vd = &control->devices[i];
|
||||
|
|
|
|||
Loading…
Reference in New Issue