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 753021 - dashdemux: add a check for seek type in parse_seek function
dashdemux: add a check for seek type in parse_seek function
Status: RESOLVED NOTABUG
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
1.5.2
Other Linux
: Normal enhancement
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-07-29 14:30 UTC by Jimmy Ohn
Modified: 2015-12-16 15:19 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add a check condition for start-type and stop-type in parse_seek function. (1.09 KB, patch)
2015-07-29 14:33 UTC, Jimmy Ohn
none Details | Review
Add a check condition for seek type in parse_seek function (1.11 KB, patch)
2015-11-27 10:25 UTC, Jimmy Ohn
needs-work Details | Review

Description Jimmy Ohn 2015-07-29 14:30:58 UTC
Add a check for start-type and stop-type in parse_seek function.
Comment 1 Jimmy Ohn 2015-07-29 14:33:13 UTC
Created attachment 308402 [details] [review]
Add a check condition for start-type and stop-type in parse_seek function.
Comment 2 Jimmy Ohn 2015-08-18 11:50:02 UTC
Dear edward and thiagoss
could you review this patch?
Comment 3 Sebastian Dröge (slomo) 2015-08-18 12:00:57 UTC
Review of attachment 308402 [details] [review]:

::: ext/dash/gstdashdemux.c
@@ +1132,3 @@
 
+  /* check if start-type/stop-type is SET */
+  if (start_type == GST_SEEK_TYPE_NONE || stop_type == GST_SEEK_TYPE_NONE) {

Most seeks have stop_type==NONE. You're breaking many things here :)

What are you trying to solve here? It should work fine for NONE seek types already, just GST_SEEK_TYPE_END might not work (has to be checked)
Comment 4 Sebastian Dröge (slomo) 2015-11-16 12:56:16 UTC
Are you planning on updating this patch?
Comment 5 Jimmy Ohn 2015-11-17 23:19:26 UTC
(In reply to Sebastian Dröge (slomo) from comment #4)
> Are you planning on updating this patch?

I'll do modify and update that patch for your comment ASAP.
Comment 6 Jimmy Ohn 2015-11-27 10:25:35 UTC
Created attachment 316372 [details] [review]
Add a check condition for seek type in parse_seek function
Comment 7 Jimmy Ohn 2015-11-27 10:27:00 UTC
Also, I have tested using gst-validate like below command. it's working for me.
gst-validate-1.0 playbin uri="http://www-itec.uni-klu.ac.at/ftp/datasets/mmsys12/RedBullPlayStreets/redbull_4s/RedBullPlayStreets_4s_isoffmain_DIS_23009_1_v_2_1c2_2011_08_30.mpd" --set-scenario=simple_seeks
Comment 8 Jimmy Ohn 2015-12-03 10:25:39 UTC
@slomo
I have upload new patch for your comment. please check my patch:)
Comment 9 Sebastian Dröge (slomo) 2015-12-03 10:50:44 UTC
Review of attachment 316372 [details] [review]:

::: ext/dash/gstdashdemux.c
@@ +1268,3 @@
 
+  /* check if start-type/stop-type is SET */
+  if (start_type != GST_SEEK_TYPE_SET || stop_type == GST_SEEK_TYPE_END) {

That doesn't seem right either.

We should support GST_SEEK_TYPE_NONE for both, and most of the handling of the other parts is already in gst_segment_do_seek(). Are there any specific seeks that are failing for you without this patch?
Comment 10 Jimmy Ohn 2015-12-15 13:05:23 UTC
(In reply to Sebastian Dröge (slomo) from comment #9)
> Review of attachment 316372 [details] [review] [review]:
> 
> ::: ext/dash/gstdashdemux.c
> @@ +1268,3 @@
>  
> +  /* check if start-type/stop-type is SET */
> +  if (start_type != GST_SEEK_TYPE_SET || stop_type == GST_SEEK_TYPE_END) {
> 
> That doesn't seem right either.
> 
> We should support GST_SEEK_TYPE_NONE for both, and most of the handling of
> the other parts is already in gst_segment_do_seek(). Are there any specific
> seeks that are failing for you without this patch?

Actually, seeks are working well without this patch. I just try to patch about the "TODO" list in dashdemux.
I think that If start_type isn't set to GST_SEEK_TYPE_SET, we should return the failed result. So, could you recommend how to check start_type and stop_type in this code? As you know, I'm newbie of gstreamer:)
Comment 11 Sebastian Dröge (slomo) 2015-12-15 13:15:56 UTC
Why would it be an error if start_type is not SET? NONE would work very well too :) You would use NONE for example if you just want to change the playback rate but want to continue playing from the current position.
Comment 12 Jimmy Ohn 2015-12-15 13:20:51 UTC
(In reply to Sebastian Dröge (slomo) from comment #11)
> Why would it be an error if start_type is not SET? NONE would work very well
> too :) You would use NONE for example if you just want to change the
> playback rate but want to continue playing from the current position.

Oh I understood! Thanks for your great opinion!:)