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 700487 - [dashdemux]: Getting max-buffering-time property returns incorrect value and modifies property value.
[dashdemux]: Getting max-buffering-time property returns incorrect value and ...
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
unspecified
Other All
: Normal normal
: 1.1.2
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2013-05-16 21:21 UTC by Arthur Shipkowski
Modified: 2013-07-11 14:49 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
It appears I failed on this attachment as well. Remedy that. (1.06 KB, patch)
2013-05-16 21:57 UTC, Arthur Shipkowski
committed Details | Review

Description Arthur Shipkowski 2013-05-16 21:21:09 UTC
In the dashdemux, the max-buffering-time property is intended to be in seconds, but the code returns the stored value (which has been multipled by GST_SECOND), generating an absurd return value when inspected. Worse, every time the value is retrieved, it is multiplied by GST_SECOND again.

How to reproduce:
Run gst-inspect dashdemux. Observe value much larger than DEFAULT_MAX_BUFFERING_TIME

A short patch to remedy this issue is attached.
Comment 1 Arthur Shipkowski 2013-05-16 21:57:58 UTC
Created attachment 244471 [details] [review]
It appears I failed on this attachment as well. Remedy that.
Comment 2 Arthur Shipkowski 2013-05-29 19:48:19 UTC
Bump.
Comment 3 Thiago Sousa Santos 2013-06-08 02:01:02 UTC
Comment on attachment 244471 [details] [review]
It appears I failed on this attachment as well. Remedy that.

Thanks for the fix, pushed.
Comment 4 Thiago Sousa Santos 2013-06-08 02:01:34 UTC
commit 3d50af3e4bf1165be7201cb145b94fa908adc009
Author: Arthur Shipkowski <art@videon-central.com>
Date:   Mon May 6 16:56:01 2013 -0400

    dashdemux: Fix issue with get returning a value for max-buffering-time
    
    It was not properly divided by GST_SECONDS. Also fix issue with
    max-buffering-time being multiplied by GST_SECONDS every time the
    property is retrieved.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=700487
Comment 5 Tim-Philipp Müller 2013-06-09 11:31:20 UTC
Out of curiosity - is there a reason "max-buffering-time" is in full seconds? If not, maybe it should be milliseconds, so that one can also specify 2.5s or so?
Comment 6 Thiago Sousa Santos 2013-06-09 17:03:39 UTC
I don't know. I agree that it should use a better granularity.

Also, the property seems unused in the code. It is in -bad, so we can still change that, right?
Comment 7 Greg Rutz 2013-06-09 17:08:32 UTC
(In reply to comment #6)
> Also, the property seems unused in the code. It is in -bad, so we can still
> change that, right?

Actually, my fix for https://bugzilla.gnome.org/show_bug.cgi?id=701404 adds the code to use this property.