store rfc6381_codec in the database

This avoids having codec-specific logic to synthesize it in db.rs. It's not
too much of a problem now with only H.264 support, but it'd be a pain when
supporting H.265 and other codecs.
This commit is contained in:
Scott Lamb
2018-02-05 11:57:59 -08:00
parent cc6579b211
commit 6f309e432f
5 changed files with 87 additions and 32 deletions

View File

@@ -194,7 +194,11 @@ The general upgrade procedure applies to this upgrade.
### Version 1 to version 2
Version 2 adds support for recording of sub streams. It adds a new table for
this purpose.
Version 2 adds:
* recording of sub streams (splits a new `stream` table out of `camera`)
* records the RFC-6381 codec associated with a video sample entry, so that
logic for determining this is no longer needed as part of the database
layer.
The general upgrade procedure applies to this upgrade.