RESOLVED FIXED190045
[GStreamer][MSE] Use GObject for GST_TRACE_OBJECT
https://bugs.webkit.org/show_bug.cgi?id=190045
Summary [GStreamer][MSE] Use GObject for GST_TRACE_OBJECT
Alicia Boya García
Reported 2018-09-27 10:51:17 PDT
Passing a non-GObject object to GST_TRACE_OBJECT() can be theoretically misunderstood by the GStreamer logging function, so this patch avoids that.
Attachments
Patch (3.80 KB, patch)
2018-09-27 10:53 PDT, Alicia Boya García
no flags
Patch (4.54 KB, patch)
2018-09-28 04:01 PDT, Alicia Boya García
no flags
Alicia Boya García
Comment 1 2018-09-27 10:53:00 PDT
Thibault Saunier
Comment 2 2018-09-27 11:06:30 PDT
Comment on attachment 350977 [details] Patch Should you also give the pipeline a proper name?
Alicia Boya García
Comment 3 2018-09-27 11:25:30 PDT
(In reply to Thibault Saunier from comment #2) > Comment on attachment 350977 [details] > Patch > > Should you also give the pipeline a proper name? Any suggestion for a useful name?
Philippe Normand
Comment 4 2018-09-28 01:29:45 PDT
mse-append-pipeline-n where n is a monotically increasing number?
Alicia Boya García
Comment 5 2018-09-28 04:00:05 PDT
(In reply to Philippe Normand from comment #4) > mse-append-pipeline-n where n is a monotically increasing number? I've chosen to use "append-pipeline-<type>-<container>-<number>", e.g.: append-pipeline-audio-mp4-0; as it's usually useful to know which pipeline handles what thing.
Alicia Boya García
Comment 6 2018-09-28 04:01:16 PDT
Thibault Saunier
Comment 7 2018-09-28 05:09:27 PDT
Comment on attachment 351067 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=351067&action=review lgtm otherwise. > Source/WebCore/platform/graphics/gstreamer/mse/AppendPipeline.cpp:144 > + m_sourceBufferPrivate->type().containerType().replace("/", "-").utf8().data(), appendPipelineCount++); Increment should probably be atomic.
Alicia Boya García
Comment 8 2018-09-28 06:25:16 PDT
Comment on attachment 351067 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=351067&action=review >> Source/WebCore/platform/graphics/gstreamer/mse/AppendPipeline.cpp:144 >> + m_sourceBufferPrivate->type().containerType().replace("/", "-").utf8().data(), appendPipelineCount++); > > Increment should probably be atomic. AppendPipeline can only be constructed in the main thread. There is even an assertion for that. No need for atomics here.
Thibault Saunier
Comment 9 2018-09-28 06:27:33 PDT
(In reply to Alicia Boya García from comment #8) > Comment on attachment 351067 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=351067&action=review > > >> Source/WebCore/platform/graphics/gstreamer/mse/AppendPipeline.cpp:144 > >> + m_sourceBufferPrivate->type().containerType().replace("/", "-").utf8().data(), appendPipelineCount++); > > > > Increment should probably be atomic. > > AppendPipeline can only be constructed in the main thread. There is even an > assertion for that. No need for atomics here. OK, informal r+ here then.
WebKit Commit Bot
Comment 10 2018-09-29 02:43:08 PDT
Comment on attachment 351067 [details] Patch Clearing flags on attachment: 351067 Committed r236640: <https://trac.webkit.org/changeset/236640>
WebKit Commit Bot
Comment 11 2018-09-29 02:43:10 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.