if (!MMPLAYER_IS_STREAMING(player))
return STREAMING_SERVICE_NONE;
- if (MMPLAYER_IS_HTTP_STREAMING(player))
- streaming_type = (player->duration == 0) ?
- STREAMING_SERVICE_LIVE : STREAMING_SERVICE_VOD;
+ streaming_type = (player->duration == 0) ?
+ STREAMING_SERVICE_LIVE : STREAMING_SERVICE_VOD;
switch (streaming_type) {
case STREAMING_SERVICE_LIVE:
goto ERROR;
}
- if (stype == MM_DISPLAY_SURFACE_REMOTE) {
- __mmplayer_add_signal_connection(player, G_OBJECT(sinkpad), MM_PLAYER_SIGNAL_TYPE_VIDEOBIN,
- "notify::caps", G_CALLBACK(__mmplayer_gst_caps_notify_cb), (gpointer)player);
- }
-
if (player->set_mode.media_packet_video_stream) {
g_object_set(G_OBJECT(fakesink), "signal-handoffs", TRUE, NULL);
mainbin[MMPLAYER_M_PIPE].gst = gst_pipeline_new("player");
if (!mainbin[MMPLAYER_M_PIPE].gst) {
LOGE("failed to create pipeline");
+ g_free(mainbin);
goto INIT_ERROR;
}