Bug 22829 - man page of libxv shows an error code which cannot appear
Summary: man page of libxv shows an error code which cannot appear
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Lib/other (show other bugs)
Version: unspecified
Hardware: Other All
: medium trivial
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-17 14:12 UTC by Eugen Dedu
Modified: 2011-10-05 21:00 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Eugen Dedu 2009-07-17 14:12:21 UTC
Hi,

I do not find a bugzilla for libxv, so sorry I post the bug here.

man XvQueryExtension shows:
Returned Values
       [Success]
               Returned if XvQueryExtension(3) completed successfully.

       [XvBadExtension]
               Returned if the Xv video extension is not available for the named display.

       [XvBadAlloc]
               Returned  if  XvQueryExtension(3)  failed  to  allocate  memory to process the request.

However, looking at the source code of XvQueryExtension (http://libxv.sourcearchive.com/documentation/1.0.4/Xv_8c-source.html line 00107), XvBadAlloc is never returned by this function.

So please remove from the man page the following text:
       [XvBadAlloc]
               Returned  if  XvQueryExtension(3)  failed  to  allocate  memory to process the request.

Thanks,
Eugen
Comment 1 Jeremy Huddleston Sequoia 2011-10-05 21:00:20 UTC
commit ff45155aa59c22aa5abc5ffe941dfe3b0f4c288f
Author: Jeremy Huddleston <jeremyhu@apple.com>
Date:   Wed Oct 5 20:59:37 2011 -0700

    XvQueryExtension doesn't return XvBadAlloc
    
    https://bugs.freedesktop.org/show_bug.cgi?id=22829
    
    Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.