After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 639580 - Adding more debug information to dvb plugin
Adding more debug information to dvb plugin
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other All
: Normal enhancement
: 0.10.23
Assigned To: GStreamer Maintainers
GStreamer Maintainers
: 639579 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2011-01-15 02:36 UTC by Fabrizio Milo
Modified: 2012-06-21 09:48 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch01 (824 bytes, patch)
2011-01-15 02:36 UTC, Fabrizio Milo
needs-work Details | Review
patch02 (1006 bytes, patch)
2011-01-15 02:36 UTC, Fabrizio Milo
needs-work Details | Review

Description Fabrizio Milo 2011-01-15 02:36:03 UTC
Created attachment 178381 [details] [review]
patch01

patch 1:
Specify that is a ioctl error and not a user input error.

patch 2:
I spent an hour before figuring out which chanels.conf file dvbsrc was using and if was able to
find it.
Comment 1 Fabrizio Milo 2011-01-15 02:36:35 UTC
Created attachment 178382 [details] [review]
patch02
Comment 2 David Schleef 2011-01-15 02:45:01 UTC
*** Bug 639579 has been marked as a duplicate of this bug. ***
Comment 3 David Schleef 2011-01-15 02:54:01 UTC
Review of attachment 178381 [details] [review]:

gst_dvbsrc_tune() needs better error handling in general, preferably causing an element error if something goes wrong.  The existing g_warning() is useless.  Changing this to say which ioctl failed is rearranging deck chairs -- users don't know and/or care.
Comment 4 David Schleef 2011-01-15 02:56:14 UTC
Review of attachment 178382 [details] [review]:

The code already does the right thing if the channels.conf file is missing.  If you want to complain that you couldn't figure out what it was looking for, that's fine, but it's a documentation issue.  Please submit a documentation patch instead.
Comment 5 Fabrizio Milo 2011-01-15 04:20:26 UTC
Review of attachment 178382 [details] [review]:

I am complaining a usability issue. if you try to open a file and the file is not there the application should give you some feedback not just close the channel and say:

ERROR: from element /GstURIDecodeBin:uridecodebin0: No URI handler implemented for "dvb".
Comment 6 Edward Hervey 2012-06-21 09:48:13 UTC
I fixed the file issues in a slightly different way.

commit 56487d38bd42c97ae11882f50e8763d70ca4c389
Author: Edward Hervey <edward.hervey@collabora.co.uk>
Date:   Tue Jun 19 10:35:48 2012 +0200

    dvb: Detect more issues with configuration file
    
    Report useful errors when:
    * file is present but empty
    * requested channel is not present

commit 1dd3544b8dba445160fdeddef98c5678744ee749
Author: Edward Hervey <edward.hervey@collabora.co.uk>
Date:   Tue Jun 19 10:22:50 2012 +0200

    dvbbasebin: Emit an error when we fail reading the channels file