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 762893 - splitmuxsink critical assertion when changing from null to ready
splitmuxsink critical assertion when changing from null to ready
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
1.6.3
Other Linux
: Normal minor
: 1.8.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
1.6.4
Depends on:
Blocks:
 
 
Reported: 2016-02-29 20:21 UTC by Ivan Aponte
Modified: 2016-04-20 13:54 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
splitmuxsink: only try to create internal sink if it doesn't exist (3.21 KB, patch)
2016-03-01 02:43 UTC, Thiago Sousa Santos
none Details | Review

Description Ivan Aponte 2016-02-29 20:21:33 UTC
If you create a splitmuxsink and change it to PLAYING. Then change its state to NULL and then again to PLAYING state. A critical assertion occurs:

CRITICAL **: create_sink: assertion 'splitmux->active_sink == NULL' failed

The causing line I think is this one in create_sink function 

g_return_val_if_fail (splitmux->active_sink == NULL, TRUE);


This just means that the sink was already created I have tested it and it works despite the critical message.
Comment 1 Thiago Sousa Santos 2016-03-01 02:43:12 UTC
Created attachment 322714 [details] [review]
splitmuxsink: only try to create internal sink if it doesn't exist

Thanks for reporting, this patch should fix it. It will likely be merged
after the release freeze is over.
Comment 2 Tim-Philipp Müller 2016-03-05 09:43:40 UTC
A small unit test addition for this would be nice as well :)
Comment 3 Thiago Sousa Santos 2016-03-24 22:56:05 UTC
Went to write an unit test for splitmuxsink and it seems to remove its pads when going to NULL.

I guess this is another bug...
Comment 4 Thiago Sousa Santos 2016-03-24 23:18:13 UTC
Nevermind, I was doing something wrong.

commit d738fa0787c1eb77be1e304ea225433cf0db0414
Author: Thiago Santos <thiagoss@osg.samsung.com>
Date:   Mon Feb 29 23:40:03 2016 -0300

    splitmuxsink: only try to create internal sink if it doesn't exist
    
    This allows splitmuxsink to be reused after being put to NULL.
    
    Test included
    
    https://bugzilla.gnome.org/show_bug.cgi?id=762893


I guess this is safe to go into 1.8.1?
Comment 5 Sebastian Dröge (slomo) 2016-03-25 10:05:27 UTC
I think so too, yes
Comment 6 Thiago Sousa Santos 2016-03-28 12:00:41 UTC
Merged to 1.8

commit a5ea83799bcdf4a619ef88f943919b1413a5b660
Author: Thiago Santos <thiagoss@osg.samsung.com>
Date:   Mon Feb 29 23:40:03 2016 -0300

    splitmuxsink: only try to create internal sink if it doesn't exist
    
    This allows splitmuxsink to be reused after being put to NULL.
    
    Test included
    
    https://bugzilla.gnome.org/show_bug.cgi?id=762893