GNOME Bugzilla – Bug 775447
Grilo plugin needs quality column
Last modified: 2017-04-09 21:41:01 UTC
When browsing DLNA, it's nice to see which files are high/low quality. I have a patch to add a quality column.
Created attachment 341126 [details] [review] Grilo: quality column.
Review of attachment 341126 [details] [review]: looks ok, except for one thing. ::: plugins/grilo/rb-grilo-source.c @@ +633,3 @@ + g_value_init (&v, G_TYPE_ULONG); + /* bps -> kbps. Round downwards. */ + g_value_set_ulong (&v, bitrate / 1000); grilo bitrates should already be in kbps, so I don't think this is correct. I'm guessing you saw bps values coming from the dleyna plugin?
Oh yes. Good point. I looked through the grilo source for the units but didn't notice the "kbits/s" comment before. My DLNA server (minidlna) is sending bps, so it looks like either minidlna should send kbps, or dleyna should do the conversion. Before I get lost in the DLNA doc, do you have any idea which units DLNA should be quoting the bitrate in?
Created attachment 344943 [details] [review] Grilo: quality column.
The DLNA standard states bits/second (see https://www.dlna.org/guidelines). I got this fixed in the grilo dleyna plugin (https://bugzilla.gnome.org/show_bug.cgi?id=777210). New patch attached.
Review of attachment 344943 [details] [review]: pushed as commit fb088da