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 787374 - tests: libs/player test_play_media_info failure
tests: libs/player test_play_media_info failure
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other Linux
: Normal blocker
: 1.17.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
: 787403 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2017-09-06 16:12 UTC by Edward Hervey
Modified: 2018-11-03 14:13 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
GST_DEBUG Log of failure (66.68 KB, application/octet-stream)
2017-09-06 16:12 UTC, Edward Hervey
  Details
player: Query duration and dimensions on pre-roll (1.81 KB, patch)
2017-09-07 10:49 UTC, Edward Hervey
needs-work Details | Review

Description Edward Hervey 2017-09-06 16:12:41 UTC
Created attachment 359283 [details]
GST_DEBUG Log of failure

libs/player.c:753:F:general:test_play_media_info:0: 'GPOINTER_TO_INT (state.test_data)' (2) is not equal to '1' (1)


The "problem" is that more than one media info update gets emitted (because some information gets updated after a while, like bitrates).
Comment 1 Edward Hervey 2017-09-07 10:49:44 UTC
*** Bug 787403 has been marked as a duplicate of this bug. ***
Comment 2 Edward Hervey 2017-09-07 10:49:59 UTC
Created attachment 359333 [details] [review]
player: Query duration and dimensions on pre-roll

In order to guarantee that the duration (if present) is cached before
creating the initial media_info.

Avoids having two media info updates fired in a row (with the first ones
having bogus/empty duration and dimensions).

https://bugzilla.gnome.org/show_bug.cgi?id=787403
Comment 3 Edward Hervey 2017-09-07 10:50:42 UTC
The above patch only fixes the issue for dimensions and duration. It doesn't solve it for tag updates
Comment 4 Edward Hervey 2017-09-07 10:52:20 UTC
The reason why we get tag updates is because playbin detects tags at the inputselector level, which is before the queue which is before the sink.

So you could be pre-rolled in paused ... but still have some tag updates (and therefore gstplayer would emit another media info update)
Comment 5 Edward Hervey 2018-05-09 07:56:33 UTC
Comment on attachment 359333 [details] [review]
player: Query duration and dimensions on pre-roll

This patch isn't 100% correct. The core issue is that messages/events could quite normally happen in different orders, but the unit test is checking for very specific ordering of "events".
Comment 6 Sebastian Dröge (slomo) 2018-10-19 13:26:38 UTC
(In reply to Edward Hervey from comment #5)
> Comment on attachment 359333 [details] [review] [review]
> player: Query duration and dimensions on pre-roll
> 
> This patch isn't 100% correct. The core issue is that messages/events could
> quite normally happen in different orders, but the unit test is checking for
> very specific ordering of "events".

GstPlayer is trying to do all the events in a very specific, deterministic order. If that's not the case then that's the bug.


Otherwise I expect this to be solved as part of https://bugzilla.gnome.org/show_bug.cgi?id=766898
Comment 7 Edward Hervey 2018-10-27 11:33:42 UTC
Disabling unit test for now and marking this as a blocker for the following release (1.18)
Comment 8 Edward Hervey 2018-10-27 11:39:29 UTC
commit 2f7d87a7d1670379e4873e1b8acaef1402fe720d (HEAD -> master, origin/master, origin/HEAD)
Author: Edward Hervey <edward@centricular.com>
Date:   Sat Oct 27 13:37:38 2018 +0200

    tests: Disable most gstplayer tests for now
    
    https://bugzilla.gnome.org/show_bug.cgi?id=787374
Comment 9 GStreamer system administrator 2018-11-03 14:13:18 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/608.