gstplayer with rtsp stream reports widthxheight 0x0 in "video-dimensions-changed" event
pedjaman
pedjaman at gmail.com
Thu Sep 22 16:18:02 UTC 2016
Thank you for fast reply.
When setting such debug level, a lot of debug messages are lost due to
excessive amount of verbose messages.
I'm attaching two logcats:
1. logcat.txt - having some messages dropped including one which should be
outputted by my debug line (see bellow):
2. logcat_filtered_width.txt - (filtered by word width) outputting my debug
line and above that properly detected size
Snippet of code reportinng 0x0
mGstMediaPlayer = new Player();
mGstMediaPlayer.setVideoDimensionsChangedListener(new
Player.VideoDimensionsChangedListener() {
public void videoDimensionsChanged(Player player, final int
width, final int height) {
Log.d(TAG, "videoDimensionsChanged: width=" + width + "
height=" + height);
}
});
Snippet above is borrowed from player example.
Handler is set with:
g_signal_connect (player->player, "video-dimensions-changed",
G_CALLBACK (on_video_dimensions_changed), player);
static void
on_video_dimensions_changed (GstPlayer * gstplayer, gint width, gint height,
Player * player)
{
JNIEnv *env = get_jni_env ();
(*env)->CallVoidMethod (env, player->java_player,
on_video_dimensions_changed_method_id, width, height);
if ((*env)->ExceptionCheck (env)) {
(*env)->ExceptionDescribe (env);
(*env)->ExceptionClear (env);
}
}
I wonder why this reports 0x0 when we have width and height proeprly
detected? Any clue or workaround on mind?
--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/gstplayer-with-rtsp-stream-reports-widthxheight-0x0-in-video-dimensions-changed-event-tp4679687p4679701.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
More information about the gstreamer-devel
mailing list