mario0alberto1 / gnome-mplayer

Automatically exported from code.google.com/p/gnome-mplayer
0 stars 0 forks source link

Playlist empty for DVB since gnome-mplayer 1.0 #508

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. open DVB from file menu > TV > open digital TV
2. open playlist (if not already open)

What is the expected output?
Playlist should contain all channels from channels.conf

What do you see instead?
empty playlist

What version of the product are you using?
Gnome-Mplayer 1.0.2, 1.0.3

Not affected:
GMP < 1.0

On what operating system?
Gentoo x64 (pure x64)

Please provide any additional information below.
mplayer 1.0-rc4 (20110322)

Original issue reported on code.google.com by ronny.perinke on 28 Apr 2011 at 9:44

GoogleCodeExporter commented 8 years ago
I don't have a DVB card, so you'll need to provide more information. 
gnome-mplayer -v output, your channels.conf file.

Original comment by kdeko...@gmail.com on 28 Apr 2011 at 10:18

GoogleCodeExporter commented 8 years ago
Found the problem

pretty simple patch

svn diff src/support.c 
Index: src/support.c
===================================================================
--- src/support.c   (revision 2026)
+++ src/support.c   (working copy)
@@ -1758,10 +1758,16 @@
         data = (MetaData *) g_new0(MetaData, 1);
         data->title = g_strdup_printf("CD Track %s", uri + strlen("cdda://"));
     } else if (device_name(local_uri)) {
-        if (g_ascii_strncasecmp(uri, "dvdnav://", strlen("dvdnav://") == 0)) {
+        if (g_ascii_strncasecmp(uri, "dvdnav://", strlen("dvdnav://")) == 0) {
             loop = 1;
         }
         retrieve = TRUE;
+        if (g_ascii_strncasecmp(uri, "dvb://", strlen("dvb://")) == 0) {
+           retrieve = FALSE;
+        }
+        if (g_ascii_strncasecmp(uri, "tv://", strlen("tv://")) == 0) {
+           retrieve = FALSE;
+        }
         data = get_basic_metadata(local_uri);

     } else {

It will be in future releases

Original comment by kdeko...@gmail.com on 28 Apr 2011 at 10:47

GoogleCodeExporter commented 8 years ago
great! :)

Original comment by ronny.perinke on 29 Apr 2011 at 2:18