fixed: dumpfile is not setting the frame size to the videodev.conf_height and width variable

master
Steffen Pohle 3 years ago
parent 5c1c0a94b4
commit 5f798ad905

@ -610,15 +610,18 @@
<property name="button-sensitivity">on</property>
<property name="has-entry">True</property>
<items>
<item translatable="yes">FLAT</item>
<item translatable="yes">was anderes</item>
<item translatable="yes">Light</item>
<item translatable="yes">Bias</item>
<item translatable="yes">Dark</item>
<item translatable="yes">Flat</item>
<item translatable="yes">DarkFlat</item>
</items>
<child internal-child="entry">
<object class="GtkEntry">
<property name="can-focus">False</property>
<property name="editable">False</property>
<property name="width-chars">6</property>
<property name="text" translatable="yes">FLAT</property>
<property name="text" translatable="yes">Light</property>
</object>
</child>
</object>

@ -114,9 +114,10 @@ int VideoDev_Dumpfile::Open() {
return VDEV_STATUS_ERROR;
}
i = 0;
w = ntohl(inbuf[i++]);
h = ntohl(inbuf[i++]);
conf_width = w = ntohl(inbuf[i++]);
conf_height = h = ntohl(inbuf[i++]);
pixformat = ntohl(inbuf[i++]);
conf_format = convert_from_pixelformat (pixformat);
return VDEV_STATUS_OK;
};

Loading…
Cancel
Save