WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
77086
[GStreamer] 0.11 webkitwebsrc
https://bugs.webkit.org/show_bug.cgi?id=77086
Summary
[GStreamer] 0.11 webkitwebsrc
Philippe Normand
Reported
2012-01-26 02:57:32 PST
SSIA
Attachments
0.11 webkitwebsrc
(12.06 KB, patch)
2012-01-26 03:08 PST
,
Philippe Normand
gustavo
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Philippe Normand
Comment 1
2012-01-26 03:08:07 PST
Created
attachment 124090
[details]
0.11 webkitwebsrc
Sebastian Dröge (slomo)
Comment 2
2012-01-30 02:29:34 PST
Comment on
attachment 124090
[details]
0.11 webkitwebsrc View in context:
https://bugs.webkit.org/attachment.cgi?id=124090&action=review
> Source/WebCore/platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:590 > + g_set_error(error, GST_URI_ERROR, GST_URI_ERROR_BAD_URI, "Invalid URI '%s'", uri);
error can be NULL
Sebastian Dröge (slomo)
Comment 3
2012-01-30 02:29:55 PST
Looks good other than that
Gustavo Noronha (kov)
Comment 4
2012-01-30 05:28:59 PST
Comment on
attachment 124090
[details]
0.11 webkitwebsrc View in context:
https://bugs.webkit.org/attachment.cgi?id=124090&action=review
Thanks Sebastian for the review! A couple nits + the error fix and this is good to land.
> Source/WebCore/platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:509 > case GST_QUERY_DURATION: > - { > - GstFormat format; > + { > + GstFormat format;
It's usual for these braces to be in the same line as the case statement, and close on the same column as the c in case. case BLA: { codegoeshere; }
> Source/WebCore/platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:558 > + static gchar* protocols[] = {(gchar*) "http", (gchar*) "https", 0 };
static_cast<>, I'd say let's not use the gchar defines unless it's necessary =)
Martin Robinson
Comment 5
2012-01-30 07:17:41 PST
Comment on
attachment 124090
[details]
0.11 webkitwebsrc View in context:
https://bugs.webkit.org/attachment.cgi?id=124090&action=review
> Source/WebCore/platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:127 > +static void webKitWebSrcNeedDataCb(GstAppSrc*, guint, gpointer); > +static void webKitWebSrcEnoughDataCb(GstAppSrc*, gpointer); > +static gboolean webKitWebSrcSeekDataCb(GstAppSrc*, guint64, gpointer); > > -static void webKitWebSrcStop(WebKitWebSrc* src, bool seeking); > -static gboolean webKitWebSrcSetUri(GstURIHandler*, const gchar*); > -static const gchar* webKitWebSrcGetUri(GstURIHandler*); > +static void webKitWebSrcStop(WebKitWebSrc*, bool);
You should actually continue include the variable name here for generic types like guint64 and gpointer.
> Source/WebCore/platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:556 > +const gchar * const * webKitWebSrcGetProtocols(GType)
The spacing of the asterisks is off here.
>> Source/WebCore/platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:558 >> + static gchar* protocols[] = {(gchar*) "http", (gchar*) "https", 0 }; > > static_cast<>, I'd say let's not use the gchar defines unless it's necessary =)
I think you can avoid the casts entirely if you make this something like static const char* protocols[] = {"http", "https", 0};
> Source/WebCore/platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:568 > + WebKitWebSrc* src = WEBKIT_WEB_SRC(handler); > + WebKitWebSrcPrivate* priv = src->priv; > + > + return g_strdup(priv->uri);
Just make this one line: return g_strdrup(WEBKIT_WEB_SRC(handler)->priv->uri));
Philippe Normand
Comment 6
2012-01-31 08:56:03 PST
(In reply to
comment #2
)
> (From update of
attachment 124090
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=124090&action=review
> > > Source/WebCore/platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:590 > > + g_set_error(error, GST_URI_ERROR, GST_URI_ERROR_BAD_URI, "Invalid URI '%s'", uri); > > error can be NULL
Hum but g_set_error accepts NULL error, not sure I understand the issue here.
Sebastian Dröge (slomo)
Comment 7
2012-02-01 00:28:24 PST
(In reply to
comment #6
)
> (In reply to
comment #2
) > > (From update of
attachment 124090
[details]
[details]) > > View in context:
https://bugs.webkit.org/attachment.cgi?id=124090&action=review
> > > > > Source/WebCore/platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:590 > > > + g_set_error(error, GST_URI_ERROR, GST_URI_ERROR_BAD_URI, "Invalid URI '%s'", uri); > > > > error can be NULL > > Hum but g_set_error accepts NULL error, not sure I understand the issue here.
Yes, I forgot that g_set_error() accepts NULL. Sorry
Philippe Normand
Comment 8
2012-02-01 01:37:31 PST
Committed
r106446
: <
http://trac.webkit.org/changeset/106446
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug