Skip to content

Commit

Permalink
GStreamer: debug - add tracing for GstPadDirection
Browse files Browse the repository at this point in the history
Pick-to: 6.5 6.6 6.7
Change-Id: I277fac1b493a95da0ba3bf5fa9556cfdbb696bc5
Reviewed-by: Jøger Hansegård <[email protected]>
Reviewed-by: Artem Dyomin <[email protected]>
  • Loading branch information
timblechmann committed Feb 26, 2024
1 parent 7e1e916 commit 887f1e7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/plugins/multimedia/gstreamer/common/qgst_debug.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,19 @@ QDebug operator<<(QDebug dbg, GstMessageType type)
return dbg << gst_message_type_get_name(type);
}

QDebug operator<<(QDebug dbg, GstPadDirection direction)
{
switch (direction) {
case GST_PAD_UNKNOWN:
return dbg << "GST_PAD_UNKNOWN";
case GST_PAD_SRC:
return dbg << "GST_PAD_SRC";
case GST_PAD_SINK:
return dbg << "GST_PAD_SINK";
}
return dbg;
}

QDebug operator<<(QDebug dbg, const GValue *value)
{
switch (G_VALUE_TYPE(value)) {
Expand Down
1 change: 1 addition & 0 deletions src/plugins/multimedia/gstreamer/common/qgst_debug_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ QDebug operator<<(QDebug, const GstTagList *);
QDebug operator<<(QDebug, GstState);
QDebug operator<<(QDebug, GstStateChangeReturn);
QDebug operator<<(QDebug, GstMessageType);
QDebug operator<<(QDebug, GstPadDirection);

QDebug operator<<(QDebug, const GValue *);
QDebug operator<<(QDebug, const GError *);
Expand Down

0 comments on commit 887f1e7

Please sign in to comment.