Totem comment out g_assert_not_reached
So, I've got a DLNA server (serviio 2.0) and wanted to look and listen to content on any of my laptops about the house (and not just on the Samsung tv). Trying totem since it incrementally loads menus, etc. (vlc, for instance, tries to load everything at once which is a brain-dead approach if you've got a lot of content). At any rate, I quickly hit the issue:
Totem:ERROR:../src/totem-grilo.c:703:browse_cb: code should not be reached
for my audio files. So, I clone git, down loaded a great deal of needed devel libs (I run fedora) and finally got meson and ninja to work. I once again got the above condition if (grl_media_is_image (media) || grl_media_is_audio (media)) { /* This isn't supposed to happen as we filter for videos */ g_assert_not_reached (); }
But if I places a print and return statement and commented out the assert if (grl_media_is_image (media) || grl_media_is_audio (media)) { /* This isn't supposed to happen as we filter for videos / / g_assert_not_reached (); */ printf("RME would call 703 g_assert_not_reached\n"); return; } I then got NO audio files showing when I select an album.
On the other hand, if I did not include the return statement if (grl_media_is_image (media) || grl_media_is_audio (media)) { /* This isn't supposed to happen as we filter for videos / / g_assert_not_reached (); */ printf("Would call 703 g_assert_not_reached\n") } I the got ALL the audio files and no errors!!
For some reason the function browse_cb which includes a call to grl_media_is_audio is being called for audio (mp3) files.
Just thought you'd like to know. I googled about and the error condition Totem:ERROR:../src/totem-grilo.c:703:browse_cb: code should not be reached appears to have a number of hits going back a couple of years.