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 711721 - mpegvideoparse: Unit test fails
mpegvideoparse: Unit test fails
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other Linux
: Normal critical
: 1.2.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2013-11-09 09:59 UTC by Sebastian Dröge (slomo)
Modified: 2013-11-09 14:35 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to only check for same TSN in interlaced streams (1.21 KB, patch)
2013-11-09 12:34 UTC, Matej Knopp
committed Details | Review

Description Sebastian Dröge (slomo) 2013-11-09 09:59:29 UTC
Running suite(s): mpegvideoparse
16%: Checks: 6, Failures: 5, Errors: 0
elements/parser.c:273:F:general:test_parse_normal:0: 'g_list_length (buffers) - test->discard' (1) is not equal to 'frames' (10)
elements/parser.c:273:F:general:test_parse_split:0: 'g_list_length (buffers) - test->discard' (1) is not equal to 'frames' (20)
elements/parser.c:273:F:general:test_parse_detect_stream_mpeg1:0: 'g_list_length (buffers) - test->discard' (1) is not equal to 'frames' (10)
elements/parser.c:273:F:general:test_parse_detect_stream_mpeg2:0: 'g_list_length (buffers) - test->discard' (1) is not equal to 'frames' (10)
elements/parser.c:273:F:general:test_parse_gop_split:0: 'g_list_length (buffers) - test->discard' (1) is not equal to 'frames' (10)


Happens with 1.2.0, latest 1.2 branch and git master.
Comment 1 Sebastian Dröge (slomo) 2013-11-09 10:01:49 UTC
This is the commit that breaks it:

commit e5ebd7d846a296f6018cf2af32fd229a4a05f424
Author: Matej Knopp <matej.knopp@gmail.com>
Date:   Tue Jul 30 15:17:23 2013 +0200

    mpegvideoparse: support field encoding for interlaced video
    
    https://bugzilla.gnome.org/show_bug.cgi?id=705144
Comment 2 Matej Knopp 2013-11-09 11:45:53 UTC
Well, it fails because all pictures in test have same TSN. That's not really supposed to happen in real stream, TSN is the only way to pair fields together. I don't know how to fix this since the data gets passed to gst_parser_test_normal
Comment 3 Matej Knopp 2013-11-09 12:34:30 UTC
Created attachment 259320 [details] [review]
Patch to only check for same TSN in interlaced streams

Fixes the unit test by checking for same TSN only when the stream is interlaced.
Comment 4 Sebastian Dröge (slomo) 2013-11-09 14:35:52 UTC
commit 4930dc40cd8537e6004c9ec7c9f8467ee10284ad
Author: Matej Knopp <matej.knopp@gmail.com>
Date:   Sat Nov 9 13:32:21 2013 +0100

    mpegvideoparse: check for same TSN only for interlaced streams (fixes unit test)
    
    https://bugzilla.gnome.org/show_bug.cgi?id=711721