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 748529 - adaptivedemux: only update stream position if query success
adaptivedemux: only update stream position if query success
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
1.4.5
Other Linux
: Normal enhancement
: 1.5.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-04-27 14:47 UTC by Jimmy Ohn
Modified: 2015-05-06 10:41 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
adaptivedemux: only update stream position if query sucess (2.22 KB, patch)
2015-04-27 14:49 UTC, Jimmy Ohn
none Details | Review
adaptivedemux: only update stream position if query success (2.27 KB, patch)
2015-04-28 02:50 UTC, Jimmy Ohn
none Details | Review
adaptivedemux: only update stream position if query sucess (2.39 KB, patch)
2015-04-29 09:31 UTC, Jimmy Ohn
committed Details | Review

Description Jimmy Ohn 2015-04-27 14:47:43 UTC
We don't need to check if result of peer query fail.
because it is update to segment position, it's not necessary.
Comment 1 Jimmy Ohn 2015-04-27 14:49:48 UTC
Created attachment 302454 [details] [review]
adaptivedemux: only update stream position if query sucess

We don't need to check if duration query is fail.
Comment 2 Jimmy Ohn 2015-04-28 02:50:19 UTC
Created attachment 302493 [details] [review]
adaptivedemux: only update stream position if query success

We don't need to check about the query fail case.
because it is update to segment position even though query fail.
Comment 3 Thiago Sousa Santos 2015-04-28 13:21:28 UTC
Review of attachment 302493 [details] [review]:

::: gst-libs/gst/adaptivedemux/gstadaptivedemux.c
@@ +1992,2 @@
         have_pos =
             gst_pad_peer_query_position (cur_stream->pad, GST_FORMAT_TIME,

Perhaps we can eliminate the have_pos variable altogether and just put the pad query inside the if below. It looks easier to read IMHO.
Comment 4 Jimmy Ohn 2015-04-29 09:28:03 UTC
Thank you for your comment:) I'll update new patch set.
Comment 5 Jimmy Ohn 2015-04-29 09:31:54 UTC
Created attachment 302548 [details] [review]
adaptivedemux: only update stream position if query sucess

We don't need to check if duration query is fail.
So, I update new patch for this case.
Comment 6 Jimmy Ohn 2015-05-05 17:03:15 UTC
(In reply to Thiago Sousa Santos from comment #3)
> Review of attachment 302493 [details] [review] [review]:
> 
> ::: gst-libs/gst/adaptivedemux/gstadaptivedemux.c
> @@ +1992,2 @@
>          have_pos =
>              gst_pad_peer_query_position (cur_stream->pad, GST_FORMAT_TIME,
> 
> Perhaps we can eliminate the have_pos variable altogether and just put the
> pad query inside the if below. It looks easier to read IMHO.

Could you review my new patch? I upload new patch last week.
Comment 7 Thiago Sousa Santos 2015-05-05 17:58:30 UTC
Thanks for the update. Pushed.

commit 868472affb183f457e3ad584bd8d9dabd8ee5938
Author: Jimmy Ohn <yongjin.ohn@lge.com>
Date:   Wed Apr 29 18:23:31 2015 +0900

    adaptivedemux: only update stream position if query success
    
    We don't need to check about the query fail case.
    because it is update to segment position even though query fail.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=748529
Comment 8 Jimmy Ohn 2015-05-06 04:02:19 UTC
(In reply to Thiago Sousa Santos from comment #7)
> Thanks for the update. Pushed.

commit
> 868472affb183f457e3ad584bd8d9dabd8ee5938
Author: Jimmy Ohn
> <yongjin.ohn@lge.com>
Date:   Wed Apr 29 18:23:31 2015 +0900

   
> adaptivedemux: only update stream position if query success
    
    We
> don't need to check about the query fail case.
    because it is update to
> segment position even though query fail.
    
   
> https://bugzilla.gnome.org/show_bug.cgi?id=748529

Thank you thiago:)
Comment 9 Jimmy Ohn 2015-05-06 10:41:33 UTC
(In reply to Thiago Sousa Santos from comment #7)
> Thanks for the update. Pushed.

commit
> 868472affb183f457e3ad584bd8d9dabd8ee5938
Author: Jimmy Ohn
> <yongjin.ohn@lge.com>
Date:   Wed Apr 29 18:23:31 2015 +0900

   
> adaptivedemux: only update stream position if query success
    
    We
> don't need to check about the query fail case.
    because it is update to
> segment position even though query fail.
    
   
> https://bugzilla.gnome.org/show_bug.cgi?id=748529

Could you review my another patch?
Actually, I'm wating for review.
url is here. https://bugzilla.gnome.org/show_bug.cgi?id=748738