mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
decodebin: optimize the code a bit by avoiding unnecessary string comparisons
https://bugzilla.gnome.org/show_bug.cgi?id=738416
This commit is contained in:
parent
f60da86ae2
commit
a24db77217
1 changed files with 3 additions and 4 deletions
|
@ -2093,8 +2093,9 @@ connect_pad (GstDecodeBin * dbin, GstElement * src, GstDecodePad * dpad,
|
|||
* parser is the only one that does not change the data. A
|
||||
* valid example for this would be multiple id3demux in a row.
|
||||
*/
|
||||
if (strstr (gst_element_factory_get_metadata (factory,
|
||||
GST_ELEMENT_METADATA_KLASS), "Parser")) {
|
||||
is_parser_converter = strstr (gst_element_factory_get_metadata (factory,
|
||||
GST_ELEMENT_METADATA_KLASS), "Parser") != NULL;
|
||||
if (is_parser_converter) {
|
||||
gboolean skip = FALSE;
|
||||
GList *l;
|
||||
|
||||
|
@ -2125,8 +2126,6 @@ connect_pad (GstDecodeBin * dbin, GstElement * src, GstDecodePad * dpad,
|
|||
continue;
|
||||
}
|
||||
|
||||
is_parser_converter = strstr (gst_element_factory_get_metadata (factory,
|
||||
GST_ELEMENT_METADATA_KLASS), "Parser") != NULL;
|
||||
}
|
||||
|
||||
/* emit autoplug-select to see what we should do with it. */
|
||||
|
|
Loading…
Reference in a new issue