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 777741 - avwait: Rename timecodewait to avwait, add modes
avwait: Rename timecodewait to avwait, add modes
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other Linux
: Normal enhancement
: 1.11.2
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2017-01-25 13:10 UTC by Vivia Nikolaidou
Modified: 2017-01-26 14:22 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
0001-avwait-Rename-timecodewait-to-avwait-add-modes.patch (27.34 KB, patch)
2017-01-25 13:11 UTC, Vivia Nikolaidou
none Details | Review
0001-avwait-Rename-timecodewait-to-avwait-add-modes.patch (27.52 KB, patch)
2017-01-25 15:55 UTC, Vivia Nikolaidou
none Details | Review
0001-avwait-Rename-timecodewait-to-avwait-add-modes.patch (29.42 KB, patch)
2017-01-25 17:40 UTC, Vivia Nikolaidou
none Details | Review
0001-avwait-Rename-timecodewait-to-avwait-add-modes.patch (29.38 KB, patch)
2017-01-26 12:37 UTC, Vivia Nikolaidou
committed Details | Review

Description Vivia Nikolaidou 2017-01-25 13:10:45 UTC
Renamed timecodewait to avwait. Added running-time and video-first
    modes. Default mode is timecode (the previous behaviour).
Comment 1 Vivia Nikolaidou 2017-01-25 13:11:04 UTC
Created attachment 344211 [details] [review]
0001-avwait-Rename-timecodewait-to-avwait-add-modes.patch
Comment 2 Vivia Nikolaidou 2017-01-25 15:55:58 UTC
Created attachment 344245 [details] [review]
0001-avwait-Rename-timecodewait-to-avwait-add-modes.patch
Comment 3 Vivia Nikolaidou 2017-01-25 17:40:39 UTC
Created attachment 344253 [details] [review]
0001-avwait-Rename-timecodewait-to-avwait-add-modes.patch
Comment 4 Sebastian Dröge (slomo) 2017-01-26 12:34:02 UTC
Review of attachment 344253 [details] [review]:

This should probably go into a different plugin at some point

::: gst/timecode/gsttimecodewait.c
@@ +398,3 @@
+      } else {
+        GST_DEBUG_OBJECT (self, "First time reset in settings");
+        self->running_time_to_wait_for = GST_CLOCK_TIME_NONE;

Only if the mode has changed, otherwise you might wait again without reason. Or maybe all these properties must only be set in NULL/READY but not in PAUSED/PLAYING?

@@ +425,3 @@
       }
+      if (self->mode != MODE_RUNNING_TIME) {
+        GST_DEBUG_OBJECT (self, "First time reset in video segment\n");

\n not needed

@@ +443,3 @@
       g_mutex_lock (&self->mutex);
+      if (self->mode != MODE_RUNNING_TIME) {
+        GST_DEBUG_OBJECT (self, "First time reset in video segment\n");

\n not needed

@@ +527,3 @@
   GstClockTime timestamp;
+  GstAvWait *self = GST_AVWAIT (parent);
+  /*GstClockTime duration; */

Why commented out?

@@ +538,3 @@
+  /*duration = GST_BUFFER_DURATION (inbuf);
+     if (duration != GST_CLOCK_TIME_NONE)
+     self->vsegment.position += duration; */

And this
Comment 5 Vivia Nikolaidou 2017-01-26 12:37:24 UTC
Created attachment 344319 [details] [review]
0001-avwait-Rename-timecodewait-to-avwait-add-modes.patch

Thanks for the review, cleaned up the patch, re-uploading. The "duration" part is now removed instead of commented out - it should really go away, the running_time_to_wait_for should be the beginning and not the end of the video frame.
Comment 6 Sebastian Dröge (slomo) 2017-01-26 14:22:27 UTC
commit 9e4e447ad4dedb6dd7903abe88c0d0aef1b28e68
Author: Vivia Nikolaidou <vivia@toolsonair.com>
Date:   Wed Jan 25 13:06:28 2017 +0200

    avwait: Rename timecodewait to avwait, add modes
    
    Renamed timecodewait to avwait. Added running-time and video-first
    modes. Default mode is timecode (the previous behaviour).
    
    https://bugzilla.gnome.org/show_bug.cgi?id=777741