Remove Title field from Media object

This commit is contained in:
Alexey Khit
2023-01-27 19:30:34 +03:00
parent 69dd4d26ec
commit 5243aca8e9
4 changed files with 10 additions and 17 deletions
+2 -4
View File
@@ -13,7 +13,7 @@ const deviceInputPrefix = "-f v4l2"
func deviceInputSuffix(videoIdx, audioIdx int) string {
video := findMedia(streamer.KindVideo, videoIdx)
return video.Title
return video.MID
}
func loadMedias() {
@@ -44,7 +44,5 @@ func loadMedia(kind, name string) *streamer.Media {
return nil
}
return &streamer.Media{
Kind: kind, Title: name,
}
return &streamer.Media{Kind: kind, MID: name}
}